Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Alternatives forget_subordinate_users andget_subordinate_groups#7854

jrief started this conversation inPolls
Discussion options

jrief
Mar 25, 2024
Collaborator

In our setup, users are never created by other users. Instead they are created by an external authentication system. The foreign keycreated_by in modelPageUser hence always points onto a dummy user without any privileges.

Therefore the two functionscms.utils.permissions.get_subordinate_users andcms.utils.permissions.get_subordinate_groups can'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_SUBORDINATES andCMS_GROUP_SUBORDINATES.

Is there any objection to this feature?

We also might have to think about making the modelPageUser optional. 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

Shall we make this configurable?
Yes
100%
No
0%

3 votes

You must be logged in to vote

Replies: 1 comment

Comment options

marksweb
Mar 25, 2024
MaintainerSponsor

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.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Polls
Labels
None yet
2 participants
@jrief@marksweb

[8]ページ先頭

©2009-2025 Movatter.jp