File sharing - php

Asked

Viewed 44 times

0

Good afternoon, I have a website to share information, and my question at this point is how can I share information only for certain users who are chosen by me?

In the database I have User -cc, name, contact, idInfo Info - ID, title, description

2 answers

0

Good morning. In my opinion a table should be created (utilizador_escolhido), with the fields (codigo, codigo_utilizador, estado).

From the moment a user is chosen, its code is inserted in the chosen user_table and in the state field of that same table a value is added.

When sharing information, only information is shared to users whose code is in the table (utilizador_escolhido) and the status of that same user in this table is 1.

I hope I helped. Hugs.

0


It would be interesting to create a table with access permissions (user_permission) in it link the User id with the pages/folders or information that Cvoce wants it to have access to! That way the management of this access becomes simpler! I hope I helped! Good Luck!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.