mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Menu restructuring.
This commit is contained in:
1 parent
309a1314a9
commit
74ccdb910a
3 files changed
+47
-36
No files matched your search
+4
-5
@@ -51,15 +51,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
if ( $session->AllowedTo("Admin") )
|
||||
$user_menu->AddOption(translate("New User"),"$c->base_url/usr.php?create",translate("Add a new user"), false, 10);
|
||||
|
||||
$related_menu->AddOption( sprintf(translate("Edit %s"), $user->Get('fullname')), $c->base_url.'/usr.php?user_no='.$user->user_no.'&edit=1', translate("Edit this user record"), true, 900 );
|
||||
$related_menu->AddOption( sprintf(translate("View %s"), $user->Get('fullname')), $c->base_url.'/usr.php?user_no='.$user->user_no, translate("View this user record"), true, 900 );
|
||||
if ( $user->user_no > 0 ) {
|
||||
if ( $user->AllowedTo('update') && ! $user->EditMode ) {
|
||||
$user_menu->AddOption( sprintf(translate("Edit %s"), $user->Get('fullname')), "$c->base_url/usr.php?user_no=$user->user_no&edit=1", translate("Edit this user record"), true, 900 );
|
||||
$related_menu->AddOption( sprintf(translate("Edit %s"), $user->Get('fullname')), "$c->base_url/usr.php?user_no=$user->user_no&edit=1", translate("Edit this user record"), true, 900 );
|
||||
}
|
||||
else {
|
||||
$user_menu->AddOption( sprintf(translate("View %s"), $user->Get('fullname')), "$c->base_url/usr.php?user_no=$user->user_no", translate("View this user record"), true, 900 );
|
||||
$related_menu->AddOption( sprintf(translate("View %s"), $user->Get('fullname')), "$c->base_url/usr.php?user_no=$user->user_no", translate("View this user record"), true, 900 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user