Menu With Auth

This commit is contained in:
Ibnu Maksum
2024-02-26 11:25:15 +07:00
parent 8824489704
commit 35d679ed2c
23 changed files with 25 additions and 33 deletions

View File

@ -18,7 +18,7 @@ $menu_registered = array();
* @param string icon from ion icon, ion-person, only for AFTER_
* @param string label for showing label or number of notification or update
* @param string color Label color
* @param string auth ['SuperAdmin', 'Admin', 'Report', 'Agent', 'Sales'] will only show in this user, empty array for all users
* @param string auth authorization ['SuperAdmin', 'Admin', 'Report', 'Agent', 'Sales'] will only show in this user, empty array for all users
*/
function register_menu($name, $admin, $function, $position, $icon = '', $label = '', $color = 'success', $auth = [])
{