zf enable layout

zf create db-table Kontynent kontynent
zf create db-table Panstwo panstwo

zf create controller kontynent
zf create controller panstwo

zf create action show kontynent
zf create action show panstwo


zf create form Kontynent
zf create form Panstwo




zf create db-table User user
zf create form Login
zf create project-provider user create


zf create user admin supertajnehaslo
zf create user reader supertajnehaslo
zf create user redaktor supertajnehaslo
zf create user root supertajnehaslo



zf create controller Auth
zf create action login Auth
zf create action logout Auth



zf create form Register
zf create action registerform Auth
zf create action register Auth


zf create form Forgotpassword
zf create action forgotpasswordform Auth
zf create action forgotpassword Auth


zf create form Changepassword
zf create action changepasswordform Auth
zf create action changepassword Auth

zf create db-table Action action
zf create db-table ActionHasUser action_has_user





zf create project-provider auth allowActionAccess
SKADNIA:
zf allow-action-access auth action controller module
PRZYKADY
zf allow-action-access auth createform panstwo
zf allow-action-access auth create panstwo
zf allow-action-access auth show panstwo
zf allow-action-access auth edit panstwo



zf create project-provider auth disallowActionAccess
SKADNIA:
zf disallow-action-access auth action controller module
PRZYKADY
zf disallow-action-access auth createform panstwo
zf disallow-action-access auth create panstwo
zf disallow-action-access auth show panstwo
zf disallow-action-access auth edit panstwo


zf create project-provider auth grant
SKADNIA:
zf grant auth user action controller module
PRZYKADY
zf grant auth admin createform panstwo
zf grant auth admin create panstwo
zf grant auth admin edit panstwo



zf create project-provider auth revoke
SKADNIA:
zf revoke auth user action controller module
PRZYKADY
zf revoke auth admin createform panstwo
zf revoke auth admin create panstwo
zf revoke auth admin edit panstwo



zf create project-provider auth setReadable
SKADNIA:
zf set-readable auth controller module
PRZYKADY
zf set-readable auth index
zf set-readable auth panstwo
zf set-readable auth kontynent



zf create project-provider auth setUnreadable
SKADNIA:
zf set-unreadable auth controller module
PRZYKADY
zf set-unreadable auth panstwo
zf set-unreadable auth kontynent


zf create project-provider auth grantEditorRules
SKADNIA:
zf grant-editor-rules auth user controller module
PRZYKADY
zf grant-editor-rules auth admin index
zf grant-editor-rules auth admin panstwo
zf grant-editor-rules auth admin kontynent
zf grant-editor-rules auth admin user
zf grant-editor-rules auth admin action


zf create project-provider auth revokeEditorRules
SKADNIA:
zf revoke-editor-rules auth user controller module
PRZYKADY
zf revoke-editor-rules auth admin panstwo



zf create project-provider auth grantReaderRules
SKADNIA:
zf grant-reader-rules auth user controller module
PRZYKADY
zf grant-reader-rules auth admin index
zf grant-reader-rules auth admin panstwo



zf create project-provider auth clear
zf clear auth




zf create controller User
zf create controller Action

zf create form User
zf create form Action










zf create user admin supertajnehaslo
zf create user reader supertajnehaslo
zf create user redaktor supertajnehaslo
zf create user root supertajnehaslo




zf allow-action-access auth index index

zf grant-reader-rules auth reader panstwo
zf grant-reader-rules auth reader kontynent

zf grant-editor-rules auth admin panstwo
zf grant-editor-rules auth admin kontynent

zf grant-editor-rules auth root user
zf grant-editor-rules auth root action



