diff --git a/src/Controllers/Users/PermissionController.php b/src/Controllers/Users/PermissionController.php index 11c02db..7a8e38d 100644 --- a/src/Controllers/Users/PermissionController.php +++ b/src/Controllers/Users/PermissionController.php @@ -109,7 +109,7 @@ public function edit($id) public function update($id) { $validationRules = [ - 'name' => 'required|max_length[255]|is_unique[auth_permissions.name]', + 'name' => "required|max_length[255]|is_unique[auth_permissions.name,id,$id]", 'description' => 'required|max_length[255]', ]; diff --git a/src/Views/Permission/index.php b/src/Views/Permission/index.php index a6a9240..82c27f7 100644 --- a/src/Views/Permission/index.php +++ b/src/Views/Permission/index.php @@ -49,7 +49,7 @@ paging: true, lengthChange: true, searching: true, - ordering: true, + ordering: false, info: true, autoWidth: false, @@ -61,9 +61,14 @@ { 'data': null }, { 'data': 'name' }, { 'data': 'description' }, - { - 'data': function (data) { - return ' '; + { + "data": function(data) { + return `