misc/migration/3.8.3_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 19 Sep 2013 18:11:12 +0200
branchstable
changeset 9234 ce504d23edf7
parent 5589 25bf54dab82b
permissions -rw-r--r--
[staticcontrollers] Raise Forbidden, not Unauthorized Unauthorized means "log in to get access", as it results in a HTTP 401. Here, the error is pretty much permanent, and returning 401 instead of 403 confuses things terribly. (This seems to be a pretty widespread confusion :/)

if 'same_as' in schema:
    sync_schema_props_perms('same_as', syncperms=False)
sync_schema_props_perms('Bookmark', syncperms=False)