Commit Graph
3 Commits
Author SHA1 Message Date
David Ignacio 24cd4938a5 correct roles_* decorator signature expectations
Having multiple RoleNeed objects in a Permission does not require
all to be satisfied in order to .can(), but will return True if
any are present.  This makes the previous roles_required logic more
elegant for roles_accepted.  roles_required decorator needs to check
all permissions individually and return only if all permissions exist
2012-06-22 00:15:43 -05:00
Matt Wright c20f244d66 Big code cleanup 2012-06-18 16:51:43 -04:00
Matt Wright c123e32ddc decorators for basic http auth and token auth 2012-06-14 18:04:14 -04:00