|  | @@ 108-117 (lines=10) @@ | 
                                                            
                                    | 105 |  |         return false; | 
                                                            
                                    | 106 |  |     } | 
                                                            
                                    | 107 |  |  | 
                                                            
                                    | 108 |  |     public static function removeModelPermissions($usergroup, $model, $extra = '*') | 
                                                            
                                    | 109 |  |     { | 
                                                            
                                    | 110 |  |         $collection = self::getModelActions($usergroup, $model, $extra); | 
                                                            
                                    | 111 |  |         $success = true; | 
                                                            
                                    | 112 |  |         foreach ($collection as $acl) { | 
                                                            
                                    | 113 |  |             $success = $success * $acl->delete(); | 
                                                            
                                    | 114 |  |         } | 
                                                            
                                    | 115 |  |  | 
                                                            
                                    | 116 |  |         return $success == true; | 
                                                            
                                    | 117 |  |     } | 
                                                            
                                    | 118 |  |  | 
                                                            
                                    | 119 |  |     public static function addPermission($permission, $entity, $usergroup, $module, $action = '*', $extra = '*') | 
                                                            
                                    | 120 |  |     { | 
                                                                                
                                |  | @@ 160-169 (lines=10) @@ | 
                                                            
                                    | 157 |  |         return $collection; | 
                                                            
                                    | 158 |  |     } | 
                                                            
                                    | 159 |  |  | 
                                                            
                                    | 160 |  |     public static function getModelActionsAsArray($usergroup, $model, $extra = '*', $permission = false) | 
                                                            
                                    | 161 |  |     { | 
                                                            
                                    | 162 |  |         $collection = self::getModelActions($usergroup, $model, $extra, $permission); | 
                                                            
                                    | 163 |  |         $actions = []; | 
                                                            
                                    | 164 |  |         foreach ($collection as $acl) { | 
                                                            
                                    | 165 |  |             $actions[] = $acl->getAction(); | 
                                                            
                                    | 166 |  |         } | 
                                                            
                                    | 167 |  |  | 
                                                            
                                    | 168 |  |         return $actions; | 
                                                            
                                    | 169 |  |     } | 
                                                            
                                    | 170 |  |  | 
                                                            
                                    | 171 |  |     public static function getPagePermission($usergroup, $module, $action = '*', $extra = '*') | 
                                                            
                                    | 172 |  |     { |