I added a new permission (using JBDeni's Add Permission MOD) and renamed it from $mem (Member) to $siteadmin so that it can be a subset of $admin -- I need the new permission to:
1 - Allow a superuser to add/modify/delete users at their location (client site)
2 - NOT allow the superuser to see the Admin users (if else on list ?)
3 - Allow superuser to grant permissions for only those applicable to that location (client site)
4 - Admin would set which permissions the superuser can grant to users it sets up.
Here's where I'm at:
Add permission mod successfully incorporated and modified so that it is $siteadmin
New line added in html_pl sub html_footer: (to print option if user is a siteadmin)
print qq!| <A HREF="$db_script_link_url&site_admin_display=1">Site Admin</A> ! if ($per_siteadmin)
In DB.CGI, I cloned sub admin_display and renamed the clone to sub site_admin_display
In HTML.PL, I cloned sub html_admin_display and renamed the clone to sub html_site_admin_display
Now I have the Admin doing all the normal Admin functions, and the Site_Admin ready to modify to limit what they can do.
This is where I need help....
? Will an if else statement be enough or even work to modify what users (eliminating any user that has full admin rights) appear in the user list for the site_admin?
? and will an if else statement be enough or even work to limit the permissions that the site_admin can assign to users?
This makes sense logically to me, but I don't know the code well enough to see any pitfalls or any other places that I need to make modifications? I have searched for $perm and changed the names so that "Member" appears as Site Admin and "Admin appears as "Corp Admin"
Any expert advise would be very helpful to me right now! Thanks!
Lynette
Hollister, Ca
1 - Allow a superuser to add/modify/delete users at their location (client site)
2 - NOT allow the superuser to see the Admin users (if else on list ?)
3 - Allow superuser to grant permissions for only those applicable to that location (client site)
4 - Admin would set which permissions the superuser can grant to users it sets up.
Here's where I'm at:
Add permission mod successfully incorporated and modified so that it is $siteadmin
New line added in html_pl sub html_footer: (to print option if user is a siteadmin)
print qq!| <A HREF="$db_script_link_url&site_admin_display=1">Site Admin</A> ! if ($per_siteadmin)
In DB.CGI, I cloned sub admin_display and renamed the clone to sub site_admin_display
In HTML.PL, I cloned sub html_admin_display and renamed the clone to sub html_site_admin_display
Now I have the Admin doing all the normal Admin functions, and the Site_Admin ready to modify to limit what they can do.
This is where I need help....
? Will an if else statement be enough or even work to modify what users (eliminating any user that has full admin rights) appear in the user list for the site_admin?
? and will an if else statement be enough or even work to limit the permissions that the site_admin can assign to users?
This makes sense logically to me, but I don't know the code well enough to see any pitfalls or any other places that I need to make modifications? I have searched for $perm and changed the names so that "Member" appears as Site Admin and "Admin appears as "Corp Admin"
Any expert advise would be very helpful to me right now! Thanks!
Lynette
Hollister, Ca

