Update for user but no further rights in config?

General discussion about netjukebox
Post Reply
b@b78
User
Posts: 4
Joined: Tue Aug 29, 2006 4:22 pm

Update for user but no further rights in config?

Post by b@b78 »

Is it possible to give some users the right to update the database but no further rights in the config screen so they cant mess up the config but can add extra songs?
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

With some small changes to the scripts it is possible to give users with for instance play rights also right to update the database.

Change in the update.php script (netjukebox 3.79d, line 31)
from

Code: Select all

authenticate('access_config');
to

Code: Select all

authenticate('access_play');
Show the required table fields in config.php with something like this:

Code: Select all

if ($cfg['access_play'])
	{
	// view required table fields…
	}
b@b78
User
Posts: 4
Joined: Tue Aug 29, 2006 4:22 pm

Thanks

Post by b@b78 »

I never thanked you for this but if works great!

Bedankt!
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Graag gedaan (no problem),

Willem
Post Reply