Update for user but no further rights in config?
Update for user but no further rights in config?
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?
- wbartels
- netjukebox developer
- Posts: 881
- Joined: Thu Nov 04, 2004 3:12 pm
- Location: Netherlands
- Contact:
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
to
Show the required table fields in config.php with something like this:
Change in the update.php script (netjukebox 3.79d, line 31)
from
Code: Select all
authenticate('access_config');
Code: Select all
authenticate('access_play');
Code: Select all
if ($cfg['access_play'])
{
// view required table fields…
}