Subversion Repositories SmartDukaan

Rev

Rev 15188 | Rev 15311 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15188 Rev 15227
Line 97... Line 97...
97
			Cache::write($cachekey,$acls,'month');
97
			Cache::write($cachekey,$acls,'month');
98
		}
98
		}
99
		$this->set('acls',$acls);
99
		$this->set('acls',$acls);
100
    }
100
    }
101
	
101
	
-
 
102
	function checkAcl() {
-
 
103
    	if(!in_array($this->here,$this->acls[$logged_user['group_id']]['allowed'])){
-
 
104
    		$this->Session->setFlash(__('You are not authorized to access this page.'));
-
 
105
    		return $this->redirect(array('controller'=>'administration','action' => 'dashboard','admin'=>false));
-
 
106
    	}
-
 
107
    }
-
 
108
 
102
    function isAuthorized() {
109
    function isAuthorized() {
103
        return $this->Auth->user('id');
110
        return $this->Auth->user('id');
104
    }
111
    }
105
 
112
 
106
    function isFbAuthorized() {
113
    function isFbAuthorized() {