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
/printthread.php 16 require_once



UserSpice
Automatic Permission Level - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Automatic Permission Level (/showthread.php?tid=1066)



Automatic Permission Level - acstudent - 05-25-2018

I wanted to know what would be the most efficient way to edit join.php to allow those registering to choose their own permission group, or to set the permission level at time of registration for users.


Automatic Permission Level - Brandin - 05-26-2018

How sure are you that you won't have problems with users selecting the wrong groups? Will one of the groups have higher permissions that you need to be concerned about?
If so: I suggest doing join keys where you create a code linked to a permission level that allows signup to that, and add it to the additional_join_form_fields and after_user_creation.

If not: Add a dropdown/checkboxes similar to the ones on admin_user or admin_page.php for permission levels to the join form, and run the PHP in the after_user_creation.

Brandin.