Advice for File Manager

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Re: Advice for File Manager

Post by johnj » Fri Sep 14, 2012 8:50 am

One way to do this will be - Create a table with columns to store file_name, file_url and use_group. The user_group could be for example - beginner, intermediate, advanced and expert. Four types of users. Each record inserted into this table will belong to one of these groups. So, when a user uploads a file, its name, url and group will get saved to this table. When another user logs in to view, you will check his/her group and show all the files (urls) belonging to that group.

johnj
php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Re: Advice for File Manager

Post by johnj » Sat Sep 15, 2012 2:18 am

a.if bob belongs to multiple groups then usually he/she is given access of the highest group.

b.the documents when uploaded gets saved along with the group to which it is intended for.

example #1:

Bob belongs to Group A,B,D and F. In that case, Bob will have access to documents belonging to all the four groups.

example #2:
Bob uploads docA belonging to Group A, docD of 'D' group and docF of group F. When Tom (belonging to Group B and D) logs in he will be able to see ONLY docD because he doesn't have access to group A and F.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests