"users" not allowed to deploy a configuration

Post here if you found bugs.
User avatar
Tontonitch
NConf addict
NConf addict
Posts: 254
Joined: Fri May 07, 2010 10:14
Location: Thionville, France
Contact:

"users" not allowed to deploy a configuration

Post by Tontonitch » Wed Jan 04, 2012 11:00

Hi,

It seems that "users" are allowed to generate a configuration, but not allowed to deploy it.
I guess it is not the expected behaviour.
To fix that, I've added at the end of the file include/access_rules.php the following:

Code: Select all

    # Config deployment
    $NConf_PERMISSIONS->setURL('call_file.php', FALSE, array('user') );

?>
Now, a user (so not only admin) is allowed to deploy a generated configuration.

BR,
Yannick

User avatar
fgander
NConf developer
NConf developer
Posts: 308
Joined: Mon Mar 16, 2009 14:23
Location: Bern, Switzerland
Contact:

Re: "users" not allowed to deploy a configuration

Post by fgander » Sun Feb 05, 2012 16:10

Yannick, your pull request was accepted ;)

Cheers and thanks
F.G. - NConf developer
http://www.nconf.org
Image
Follow NConf on Twitter!

Locked