change of ADMIN privilege management
- don't grant ADMIN permission to home or update pages - allow granting ADMIN permission via `--admin_pages` command line option
This commit is contained in:
parent
232a74d274
commit
66fcc037e3
3 changed files with 8 additions and 2 deletions
|
@ -110,8 +110,8 @@ class Site(object):
|
|||
if config.download_optional == "auto":
|
||||
self.settings["autodownloadoptional"] = True
|
||||
|
||||
# Add admin permissions to homepage
|
||||
if self.address in (config.homepage, config.updatesite) and "ADMIN" not in self.settings["permissions"]:
|
||||
# Add admin permissions according to user settings
|
||||
if self.address in config.admin_pages and "ADMIN" not in self.settings["permissions"]:
|
||||
self.settings["permissions"].append("ADMIN")
|
||||
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue