File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,26 @@ public function __construct() {
11
11
12
12
public function getAllPermissions () {
13
13
// Devolver todos los permisos
14
+ return $ this ->permisoModel ->getAllPermissions ();
14
15
}
15
16
16
17
public function getPermissionByName ($ name ) {
17
18
// Devolver el permiso con el nombre indicado
19
+ return $ this ->permisoModel ->getPermissionByName ($ name );
18
20
}
19
21
20
22
public function addPermission ($ data ) {
21
23
// Agregar un permiso
24
+ return $ this ->permisoModel ->addPermission ($ data );
22
25
}
23
26
24
27
public function updatePermission ($ id , $ data ) {
25
28
// Actualizar un permiso
29
+ return $ this ->permisoModel ->updatePermission ($ id , $ data );
26
30
}
27
31
28
32
public function deletePermission ($ id ) {
29
33
// Eliminar un permiso
34
+ return $ this ->permisoModel ->deletePermission ($ id );
30
35
}
31
36
}
You can’t perform that action at this time.
0 commit comments