Skip to content

Instantly share code, notes, and snippets.

@kjakub
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kjakub/8801413 to your computer and use it in GitHub Desktop.
Save kjakub/8801413 to your computer and use it in GitHub Desktop.
Zeedo Authorization Overview
1. List of user's roles in Zeedo
tribe - everybody who sign up via social accounts or via form and who IS NOT in the list as admin in facebook app
brand - user will became brand user if first sing up and via facebook and he IS in the list as admin in facebook app
system - chosen user or users set up via seed or manually (behavior may change in future)
2. privileges
tribe
- can play N games (validation: game not suspend,game not expired time, game started time, game players exceeded, user not suspend, game is not playing, game is not completed )
- can create only 1 active game in time
- can suspend his own game (no one will join no one will upload snapshot)
- can unsuspend his own game
- can update his own game
- can upload snapshot to the game (validation: game not suspend,game not expired time, game started time, game players exceeded, user not suspend, game is not playing, game is not completed )
- can set snapshot recognized of game which he created from other players
- can set unrecognized snapshot of game which he created from other players
- can set destroy snapshot of game which he created from other players
brand
- same as tribe with difference of:
+ can create N actives game in time
supervisor
- same as brand
+ can suspend user (user unable )
+ can unsuspend user
+ cannot suspend himself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment