Updated can_update() and can_view() to check on "roles" capabilities
authorMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 27 May 2009 16:05:14 +0000 (16:05 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Wed, 27 May 2009 16:05:14 +0000 (16:05 +0000)
commit96b53f394d5041e56f5fb37665e7a403bc184484
tree31cfe20f3757b667e86b19735fa35ef4ec0120e6
parente30b3a7b16418dc44cbda934459fa1a5a4e74306
Updated can_update() and can_view() to check on "roles" capabilities
rather than use the relative values of role_ids.  The code now
functions even when a person has no roles whatsoever, which under
certain error conditions can occur.
PLC/Persons.py