switching users user rights several times switching users user rights several times
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

switching users user rights several times

Started by dwo, June 14, 2008, 01:39:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dwo

Hello.

I have several users and one admin.

I want, that from time to time users should be able to upload in admin albums (in other categories).
Therefore, I want to switch them to admin rights, let them upload, then, I want to switch them back to registered rights.

I tested that and it works fine.

Question: Could this cause problems in the database etc. in the long run?

Thank you very much, regards, Dietmar


Stramm

I do not think that this will cause db problems. However you shouldn't give away admin rights to people you fully trust. With admin rights and google everyone can take over your server.
Why not temporarily change album permissions instead? If it's several albums you could create a sql statement list that you just paste into phpmyadmins command box.

dwo

Thank you very much Stramm   :)

I would give them rights just for the upload process.

Then, I have removed all "admin tags" and some user tags, too. So they get only the direct link to upload.php, so they dont start playing around ;)

Then, I additionally renamed some files in the root folder like admin.php etc.

So, I think, you need much negative energy to do damage. And if you do, we will install one of our backups. Our server backups twice a day.


But, I will have a look at what you proposed, although I dont quite understood 100% ;)

Best regards, Dietmar