[Wiki] On empêche les anonymes de modifier les préférences ou ajouter
des quicklinks
This commit is contained in:
parent
6648b2e009
commit
1ae148671d
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class AnonymousAuth(BaseAuth):
|
||||||
return user_obj, True
|
return user_obj, True
|
||||||
|
|
||||||
p = urlparse.urlparse(request.url)
|
p = urlparse.urlparse(request.url)
|
||||||
# Prevent preference edition when anonymous
|
# Prevent preference edition and quicklink when anonymous
|
||||||
if action == "userprefs" or action == "quicklink":
|
if action == "userprefs" or action == "quicklink":
|
||||||
url = urlparse.urlunparse(('https', p.netloc, p.path, "", "", ""))
|
url = urlparse.urlunparse(('https', p.netloc, p.path, "", "", ""))
|
||||||
request.http_redirect(url)
|
request.http_redirect(url)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue