commit | 5ff90fcd16b28eefdac5cbbb29f8e2b214ba108e | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@cs.princeton.edu> | Sun Feb 08 21:38:41 2015 -0500 |
committer | Tony Mack <tmack@cs.princeton.edu> | Sun Feb 08 21:38:41 2015 -0500 |
tree | 924e84e1a2dec0737304dbf390de3783d510f555 | |
parent | 6d0b0b39365f408b93538d0f203178e33ca98d53 [diff] [blame] |
refactor object write permissions
diff --git a/planetstack/core/models/controlleruser.py b/planetstack/core/models/controlleruser.py index 678ab77..b3ba720 100644 --- a/planetstack/core/models/controlleruser.py +++ b/planetstack/core/models/controlleruser.py
@@ -25,6 +25,9 @@ qs = ControllerUser.objects.filter(user__in=users) return qs + def can_update(self, user): + return user.can_update_root() + class ControllerSitePrivilege(PlCoreBase): objects = ControllerLinkManager()