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 ` +
+ + +
+ ` } } ] diff --git a/src/Views/Role/index.php b/src/Views/Role/index.php index 7758d70..e23da8c 100644 --- a/src/Views/Role/index.php +++ b/src/Views/Role/index.php @@ -58,8 +58,13 @@ { 'data': 'name' }, { 'data': 'description' }, { - 'data': function (data) { - return ' '; + "data": function(data) { + return ` +
+ + +
+ ` } } ] diff --git a/src/Views/User/index.php b/src/Views/User/index.php index de5ce53..409c8fe 100644 --- a/src/Views/User/index.php +++ b/src/Views/User/index.php @@ -60,9 +60,14 @@ return `${data.active == 1 ? '' : ''}` } }, - { - 'data': function (data) { - return ` `; + { + "data": function(data) { + return ` +
+ + +
+ ` } } ]