The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
#21
We really made this more complicated than it had to be. Or maybe I just explained it horribly.

I used
Code:
admin_user.php
as a reference.

Basically, on the
Code:
admin_user.php
page, it grabs the permissions of a given user. However, we can tell it to get permissions of the current user by changing the value of
Code:
$userId
to the current users value. In return, it posts the current users permissions, and we use the remove permissions function in a select option format instead, thus allowing the current user only to make accounts with the same permissions it has at maximum.

I'm actually kinda proud of myself Smile
  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: 5 Guest(s)