× 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
Delete user
Hi all! Today I was working hard testing user's roles(permission), etc and I've noticed that just the Admin is able to delete any other users. I've worked into this app for a company with some workers with more permission levels than a simple user that in my case are just CLIENTS.

What I would like to achieve is that 'workers' be able to DELETE users ('1').
DO you think I could do that without break any hard rule code of US. (in order not to complicate my life in the future). That workers now are able to access to some features of Dashboard.

In this app I just have 4 levels [0,1,2,3]
Hi @alexuco!

admin_user code dictates that if they are not within Group 2 (Default Admin) or UID 1, they cannot delete users. You will need to modify core code to do this, I would just copy it to usersc and do it, Line 614 approx. You'll also need to copy the if function you put there to the delete function in the PHP tags near the beginning.


Forum Jump:

Users browsing this thread: 1 Guest(s)