Remove inheritance of groups

webftpmaster

Joined: 2014-03-30
Posts: 3
Posted: Tue, 2014-04-01 13:22

Hi!

I would like to know which portion of the code could be modified to remove the automatic inheritance of the access_caches when we create a new group.

Basically I don't want any newly created group to have access to anything until I say so.

Any ideas or direction or file to start looking in?

Thanks!

 
webftpmaster

Joined: 2014-03-30
Posts: 3
Posted: Mon, 2014-04-07 15:29

Sorry to bump my own topic but I have a huge issue with the inheritance of groups.

I'll try to explain it once again as clearly as possible.

Gallery -> Album1 -> Album2

Normally, if I give access to Album2 to a certain group, that group must also be granted access to Gallery (main folder)…so far so good?

The issue which i find VERY annoying:

My setup is as follows:

Gallery -> Album1 -> Album4
-> Album2 -> Album5
-> Album3 -> Album6

If I want to grant access to Album5 I need to also grant access to the main folder Gallery….the problem is that by allowing that for a certain group, that group will automatically have access to Album1, Album2 and Album3! which was not intended!

I would LOVE to change the code myself and crate a module for everyone but I just can't seem to find where is the javascript part of the code that gives and denies permission!

Anyone could help me out please?
Thank you in advance!

 
spags

Joined: 2010-03-26
Posts: 120
Posted: Mon, 2014-04-07 21:58

I know its not a direct answer to your question, but I work around this by creating something like:

Gallery -> Album A (everyone gets access)

Under Album A:
->Album B
->Album C
->Album D

where B,C,D are restricted to each group. Then the contents under B,C,D get inherited from those.

I couldn't quite understand how to control access in code either so I used this as a workaround.