Subversion Repositories SmartDukaan

Rev

Rev 15227 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15227 Rev 15311
Line 22... Line 22...
22
 * admin_index method
22
 * admin_index method
23
 *
23
 *
24
 * @return void
24
 * @return void
25
 */
25
 */
26
	public function admin_index() {
26
	public function admin_index() {
27
		$this->checkAcl();
27
		// $this->checkAcl();
28
		$this->Acl->recursive = 0;
28
		$this->Acl->recursive = 0;
29
		$this->set('permissions', $this->Paginator->paginate());
29
		$this->set('permissions', $this->Paginator->paginate());
30
	}
30
	}
31
 
31
 
32
	public function admin_group($id) {
32
	public function admin_group($id) {
33
		$this->checkAcl();
33
		// $this->checkAcl();
34
		$this->Acl->recursive = 0;
34
		$this->Acl->recursive = 0;
35
		$options = array('conditions'=>array('group_id'=>$id));
35
		$options = array('conditions'=>array('group_id'=>$id));
36
		$this->Paginator->settings = $options;
36
		$this->Paginator->settings = $options;
37
		$this->set('permissions', $this->Paginator->paginate());
37
		$this->set('permissions', $this->Paginator->paginate());
38
		$this->render('admin_index');
38
		$this->render('admin_index');
Line 57... Line 57...
57
 * admin_add method
57
 * admin_add method
58
 *
58
 *
59
 * @return void
59
 * @return void
60
 */
60
 */
61
	public function admin_add() {
61
	public function admin_add() {
62
		$this->checkAcl();
62
		// $this->checkAcl();
63
		if ($this->request->is('post')) {
63
		if ($this->request->is('post')) {
64
			$this->Acl->create();
64
			$this->Acl->create();
65
			if ($this->Acl->save($this->request->data)) {
65
			if ($this->Acl->save($this->request->data)) {
66
				$this->Session->setFlash(__('The acl has been saved.'));
66
				$this->Session->setFlash(__('The acl has been saved.'));
67
				Cache::delete('acls','month');
67
				Cache::delete('acls','month');