hierarchical user file access restriction, set up ok?
-
Hi,
I am new with WordPress, Plugins and all that stuff. I am experimenting in setting up my first webpage. But first of all – many thanks for that great plugin, really professional.I would like to set up a hierarchical user file access restriction
user role 0 = Administrator
user Role 1 = foo
user Role 2 = bar
user role 3 = totoAdministrator can see all files in the repository, foo will see all files related to user roles foo, bar and toto. bar will see only files related to roles bar and toto. toto will see only files for its role toto.
I have set up the followings:
I created a custom user meta key “fa_user_dir” with plugin “User Meta Manager” and address the following values to the various users:
For Administrator: adminstrator
For foo users: administrator/foo
For bar users: administrator/foo/bar
For toto users: administrator/foo/bar/totoIn a page a included the following code:
[fileup base=”1″ makedir=”true” sub=”fa-usermeta(fa_user_dir)” matchdrawer=”true” showto=”cap_foo”]
[fileaway type=”table” base=”1″ sub=”fa-usermeta(fa_user_dir)” makedir=”true” directories=”on” paginate=”true” pagesize=”25″ manager=”on” drawericon=”book” encryption=”on” role_override=”role_foo” password=”xxxx” customdata=”Comments” metadata=”database”]
Great – it’s working as expected, but I am not sure if this is the preferred solution. Are there any back doors in my set up, so that users can see non-allowed content?
Many thanks for a response.
kkarsten62
- The topic ‘hierarchical user file access restriction, set up ok?’ is closed to new replies.