...
Code Block | ||
---|---|---|
| ||
application.security.checkPermission(webskin="displayPageStandard") |
Upgrading from 4.0
Because security will be managed in a new structure a catch-22 situation exists when it comes to migrating the data:
- this script migrates pre 5.0 security data to the new structure
- to access the updates directory you have to log in
- login uses the new structure
- which is empty until this script migrates the security data
So a directory has been added to upgrades: "b410_security". As part of the upgrade to 4.1 this directory needs to be copied to the www directory of your project where access isn't restricted, loaded in a web browser, then deleted.
All users and groups are migrated to the FarcryUD user directory, and policy groups / permissions are migrated to the new role and permission content types. Note that by default administration roles are granted access to all webskins, but anonymous only has access to display* and execute*.