flat icon indicating copy to clipboard operation
flat copied to clipboard

Problem with permissions assigned to groups and its users

Open languagerecipes opened this issue 8 years ago • 6 comments

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?

languagerecipes avatar Oct 25 '16 13:10 languagerecipes

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.

proycon avatar Oct 25 '16 15:10 proycon

Can you give a specific example where it goes wrong? The django documentation does state it should work like I suspected.

proycon avatar Oct 26 '16 08:10 proycon

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.

languagerecipes avatar Oct 26 '16 09:10 languagerecipes

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.

proycon avatar Oct 26 '16 10:10 proycon

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

languagerecipes avatar Oct 26 '16 15:10 languagerecipes

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.

proycon avatar Oct 26 '16 19:10 proycon