Replies: 1 comment
-
|
I'm always in favour of making things more flexible so if we can maintain the current functionality while allowing you to customise this, then that's great. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In our setup, users are never created by other users. Instead they are created by an external authentication system. The foreign key
created_byin modelPageUserhence always points onto a dummy user without any privileges.Therefore the two functions
cms.utils.permissions.get_subordinate_usersandcms.utils.permissions.get_subordinate_groupscan't deliver any useful results, because all users are subordinate of that dummy user. I would therefore like to make those two functions configurable. I already created a prototype and named those two configuration directivesCMS_USER_SUBORDINATESandCMS_GROUP_SUBORDINATES.Is there any objection to this feature?
We also might have to think about making the model
PageUseroptional. Without the possibility of creating and fetching subordinates, that model doesn't always make sense.Making these two functions configurable can be achieved by applying this patch:
jrief@80cc54d
3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions