feat: Implement module permissions system with database-driven access control
- Added `users_permissions` table for managing user permissions. - Created `PermissionRepository` for handling permission logic. - Refactored `controls\Users::permissions()` to utilize the new database structure. - Introduced AJAX endpoint for saving user permissions. - Enhanced user management UI with permission checkboxes. - Added vacation management template for handling employee absences. - Implemented tests for `PermissionRepository`.
This commit is contained in:
@@ -14,10 +14,10 @@
|
||||
<span class="task-title-text"><?= $this -> task['name'];?></span>
|
||||
<a href="#" class="task-title-edit-btn" title="Edytuj tytuł"><i class="fa fa-pencil-square-o"></i></a>
|
||||
|
||||
<span class="task-title-edit-box" style="display:none;">
|
||||
<input type="text" class="task-title-input form-control form-control-sm" value="<?= htmlspecialchars($this -> task['name']);?>">
|
||||
<a href="#" class="task-title-save btn btn-success btn-sm"><i class="fa fa-check"></i></a>
|
||||
<a href="#" class="task-title-cancel btn btn-danger btn-sm"><i class="fa fa-times"></i></a>
|
||||
<span class="task-title-edit-box" style="display: none;">
|
||||
<input type="text" class="task-title-input" value="<?= htmlspecialchars($this -> task['name']);?>">
|
||||
<a href="#" class="task-title-save"><i class="fa fa-check"></i></a>
|
||||
<a href="#" class="task-title-cancel"><i class="fa fa-times"></i></a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user