Show
Ignore:
Timestamp:
05/21/08 01:02:56 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/galleries_controller.php

    r510 r538  
    2525 public function isAuthorized()  
    2626 {       
    27     if (isset( $this->params[Configure::read('Routing.admin')] ))  
    28     { 
    29         if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 )  // admin and teachers 
    30         { 
    31         return true; 
    32         }  
    33     }  
    34     return false;  // go away !! 
     27   if (isset( $this->params[Configure::read('Routing.admin')] )): 
     28       if ($this->Auth->user('group_id') == 1 || $this->Auth->user('group_id') == 2 ):  // admin and teachers 
     29         return true; 
     30       else: 
     31             return false; 
     32       endif;    
     33   endif; 
     34 
     35   return true; 
    3536 } 
    36  
    37  
    38   public function index($id = null) 
    39   { 
     37  
     38 public function index($id = null) 
     39 { 
    4040        $this->pageTitle = 'View Active Users'; 
    4141        $this->set('data', $this->User->findAll());  
    4242        $this->set('color', 'blue'); 
    43   } 
     43 } 
    4444     
    45   public function listview() 
    46   {          
     45 public function listview() 
     46 {          
    4747        $this->layout    = 'popup'; 
    4848