Separate the user permission check decorators into 2 decorators.

This removes the accept_any_matching argument from user_has_permission,
and moves that functionality to a new decorator called
user_has_any_permission.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Move the runtime permission handling code into it's own decorator.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Make prepare_runtime_permission a function.

Also fix a bug when evaluating if a user has any permission where
if they had the wildcard permission they could incorrectly be marked
as not having the permission.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Fix permission decorators when a permission is not provided.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>
Merge pull request #333 from Acidity/feature/groupsRef

Refactor the Permission checking decorators