The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Creation Permission
#27
Now...can you think of a way to replicate this on the
Code:
admin_user.php
page in the Remove and Add permissions group? Basically, I need it to only show the current permissions that can be removed and current permissions that can be added that the user has access to.

E.g. I have John Smith who has access to:
CSR
Logs
User Management

When he views Jane Doe, who has full access (including SA), he only sees CSR, Logs and User Management in the remove permissions and nothing in add permissions, because he cannot remove permissions he does not have access to (MGR and SA).

Jane Doe on the other hand, who is SA and has full permissions, can view all permissions the current user has under remove permissions, and all permission the user can have added under add permissions.

Scott MacDonald is a CSR and User Manager, so when he looks at John Smith, he can see CSR and User Management under remove permissions, but nothing under add permissions.

I think I can do this by duplicating the permission function that is built in to
Code:
admin_user.php
and making a set specifically for the current user, but how can I enforce it to only echo the values that the editing user has that the current user has access to.

Thanks!
  Reply


Messages In This Thread
User Creation Permission - by Brandin - 10-30-2016, 05:47 PM
User Creation Permission - by plb - 10-31-2016, 06:21 AM
User Creation Permission - by mudmin - 10-31-2016, 12:11 PM
User Creation Permission - by Brandin - 10-31-2016, 01:21 PM
User Creation Permission - by mudmin - 10-31-2016, 01:29 PM
User Creation Permission - by Brandin - 10-31-2016, 01:32 PM
User Creation Permission - by mudmin - 10-31-2016, 01:37 PM
User Creation Permission - by mudmin - 10-31-2016, 01:40 PM
User Creation Permission - by Brandin - 10-31-2016, 02:20 PM
User Creation Permission - by dan - 10-31-2016, 02:23 PM
User Creation Permission - by plb - 10-31-2016, 03:23 PM
User Creation Permission - by Brandin - 10-31-2016, 03:24 PM
User Creation Permission - by dan - 10-31-2016, 04:07 PM
User Creation Permission - by Brandin - 10-31-2016, 04:20 PM
User Creation Permission - by mudmin - 10-31-2016, 04:36 PM
User Creation Permission - by Brandin - 10-31-2016, 04:46 PM
User Creation Permission - by mudmin - 10-31-2016, 04:51 PM
User Creation Permission - by Brandin - 10-31-2016, 08:12 PM
User Creation Permission - by dan - 10-31-2016, 08:28 PM
User Creation Permission - by Brandin - 10-31-2016, 08:31 PM
User Creation Permission - by Brandin - 11-01-2016, 12:17 AM
User Creation Permission - by mudmin - 11-01-2016, 12:37 AM
User Creation Permission - by Brandin - 11-01-2016, 12:53 AM
User Creation Permission - by mudmin - 11-01-2016, 12:58 AM
User Creation Permission - by Brandin - 11-01-2016, 01:03 AM
User Creation Permission - by mudmin - 11-01-2016, 01:24 AM
User Creation Permission - by Brandin - 11-01-2016, 03:12 AM
User Creation Permission - by mudmin - 11-01-2016, 11:21 AM
User Creation Permission - by Brandin - 11-01-2016, 05:56 PM
User Creation Permission - by Brandin - 11-01-2016, 06:07 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)