Skip to content

Commit b9decd3

Browse files
committed
Controlador Permisos terminado
1 parent d0267a3 commit b9decd3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

controllers/PermisoController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,26 @@ public function __construct() {
1111

1212
public function getAllPermissions() {
1313
// Devolver todos los permisos
14+
return $this->permisoModel->getAllPermissions();
1415
}
1516

1617
public function getPermissionByName($name) {
1718
// Devolver el permiso con el nombre indicado
19+
return $this->permisoModel->getPermissionByName($name);
1820
}
1921

2022
public function addPermission($data) {
2123
// Agregar un permiso
24+
return $this->permisoModel->addPermission($data);
2225
}
2326

2427
public function updatePermission($id, $data) {
2528
// Actualizar un permiso
29+
return $this->permisoModel->updatePermission($id, $data);
2630
}
2731

2832
public function deletePermission($id) {
2933
// Eliminar un permiso
34+
return $this->permisoModel->deletePermission($id);
3035
}
3136
}

0 commit comments

Comments
 (0)