You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On user-settings form {USERCLASSES} displays classes like Newsletter and users can assing themselves to them.
Only classes with edit access are displayed.
While this works nicely for regular users, it is very confusing for admins, mainly for the main admin (it displays all core classes and you can check them, but after saving they are unchecked again, but you still have access to those classes)
Could this be fixed?
My idea:
in shortcode - added "strip" $ret .= $e_userclass->vetted_tree('class', array($e_userclass, 'checkbox_desc'), $inclass, 'strip,editable, no-excludes');
and then in this class after
`$perms = $this->uc_required_class_list($optlist,TRUE); // List of classes which we can display
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On user-settings form {USERCLASSES} displays classes like Newsletter and users can assing themselves to them.
Only classes with edit access are displayed.
While this works nicely for regular users, it is very confusing for admins, mainly for the main admin (it displays all core classes and you can check them, but after saving they are unchecked again, but you still have access to those classes)
Could this be fixed?
My idea:
in shortcode - added "strip"
$ret .= $e_userclass->vetted_tree('class', array($e_userclass, 'checkbox_desc'), $inclass, 'strip,editable, no-excludes');
and then in this class after
`$perms = $this->uc_required_class_list($optlist,TRUE); // List of classes which we can display
A similar approach is used in the usersettings file when saving this to user data.
Result:
Note: all classes between 243 and 255 are removed.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions