flat
flat copied to clipboard
Problem with permissions assigned to groups and its users
It seems permissions that are assigned to a group are not inherited by its members (i.e., users). I have some emails from LL group members who do not have permissions that are assigned to this group of users. Can you please check?
Hmm, I didn't explicitly implement any group to user inheritance, I thought it would be a feature of the django framework itself. It'll investigate and implement inheritance if needed.
Can you give a specific example where it goes wrong? The django documentation does state it should work like I suspected.
Create a fake user. Assign the user to the LL group. LL group has privileges such as modifying users, documents, etc. and suppose the assigned user to the LL group. Now login with the fake user. It does not have all the privileges set to the LL group. At least there was one instance of this type of problem (I will send you info in an email). After adding privileges to the user directly the problem was solved.
Hmm.. very peculiar. I can't reproduce it locally; I have a test group and two test users as part of that group. The users have no explicit rights whatsoever and the group has the two file management and read/write permissions. The users can see/edit each other's files and use the file management tools without problem, so the inheritance works as expected here.
Does this have to do anything with the order of creating users and groups? :-/
From: Maarten van Gompel [mailto:[email protected]] Sent: Wednesday 26 October 2016 12:19 To: proycon/flat [email protected] Cc: languagerecipes [email protected]; Author [email protected] Subject: Re: [proycon/flat] Problem with permissions assigned to groups and its users (#78)
Hmm.. very peculiar. I can't reproduce it locally; I have a test group and two test users as part of that group. The users have no explicit rights whatsoever and the group has the two file management and read/write permissions. The users can see/edit each other's files and use the file management tools without problem, so the inheritance works as expected here.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/proycon/flat/issues/78#issuecomment-256306882 , or mute the thread https://github.com/notifications/unsubscribe-auth/AHuwE7Em4w7tIzg1rYXMdAn5CyjHYT7Oks5q3ykPgaJpZM4KgBKr . https://github.com/notifications/beacon/AHuwE1GUw1veV44o8u-qn6uiJiKlYJK3ks5q3ykPgaJpZM4KgBKr.gif
That would be very unlikely. I was also wondering whether it may be a cache issue and perhaps logging out and in again helps, but that too is a very wild guess.