more permissions
This commit is contained in:
		
							parent
							
								
									5d36cbd541
								
							
						
					
					
						commit
						820b7f709f
					
				| @ -25,7 +25,7 @@ namespace Api\Notifications { | |||||||
|         'message' =>  new StringType('message', 256), |         'message' =>  new StringType('message', 256), | ||||||
|       )); |       )); | ||||||
|       $this->isPublic = false; |       $this->isPublic = false; | ||||||
| 
 |       $this->requiredGroup = array(USER_GROUP_ADMIN); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     private function checkUser($userId) { |     private function checkUser($userId) { | ||||||
| @ -148,7 +148,6 @@ namespace Api\Notifications { | |||||||
|     public function __construct($user, $externalCall = false) { |     public function __construct($user, $externalCall = false) { | ||||||
|       parent::__construct($user, $externalCall, array()); |       parent::__construct($user, $externalCall, array()); | ||||||
|       $this->loginRequired = true; |       $this->loginRequired = true; | ||||||
| 
 |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     private function fetchUserNotifications() { |     private function fetchUserNotifications() { | ||||||
|  | |||||||
| @ -33,7 +33,7 @@ namespace Api\Routes { | |||||||
|   public function __construct($user, $externalCall = false) { |   public function __construct($user, $externalCall = false) { | ||||||
|     parent::__construct($user, $externalCall, array()); |     parent::__construct($user, $externalCall, array()); | ||||||
|     $this->loginRequired = true; |     $this->loginRequired = true; | ||||||
| 
 |     $this->requiredGroup = array(USER_GROUP_ADMIN); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   public function execute($values = array()) { |   public function execute($values = array()) { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user