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
#5
Either way is fine. The problem is that admin is stuck at 2 and you don't want to change it....Believe it or not, that's legacy from being able to upgrade usercake from probably a decade ago.

As long as you get your > or < right and make sure to exclude permission level 2, I don't see a problem either way. Also, I'm hoping you left the code on admin_users as it will get updated from time to time.

Best practice would be to change access to that page to something that only you have if you don't want people to ever visit that page. If you want people to be able to access that page, but you want to modify it, best practice is to copy the entire file (and admin_user) to the usersc folder and then change the path to the init to ../users/init

This will prevent our updates from breaking your code.

Note that if "real" users will have access to admin_users you can always add those two queries at the top of the page so users can only access people who are below them. The big issue there is that you have to make sure that people can do the same with admin_user or they will be able to just change the get variable and modify users above them.
  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: 1 Guest(s)