Add user_has_permission decorator for restricting access to certain methods.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
add a permissions property to users which consolidates all of the permissions which their characters have.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add has_permission to User for determining if a user has a permission, and if so, which character has it.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix a bug in user_has_permission.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add permissions checks to /account and /admin

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Have user_has_permission use @authenticate to check if a user is logged in.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add permissions checks to /application, as well as when authorizing an application.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add support for using attributes of self to @user_has_permission

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add permissions checks to /character and /group

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add Permissions checks to /key

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Change Permission.name to Permission.id, add code for mass adding Permissions from string input, and add permissions.txt

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix bugs

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add ability for app owners to add permissions for their apps.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add UI for granting and removing permissions from a group.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Add UI management for personal permissions.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Leave an application's permissions when the application gets deleted.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Update the readme and change initPerms to init_perms.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Remove some unnecessary permissions, add functionality to user_has_permission, and clean up the account.has_permission code.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix a bunch of bugs relating to permissions.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Clean up the permissions code, fix the registration bug, and rename wild to accept_any_matching.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>