commit | 5b06147ac6515adf8c482eec417ba049f1321bf0 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@paris.CS.Princeton.EDU> | Tue Feb 04 07:57:10 2014 -0500 |
committer | Tony Mack <tmack@paris.CS.Princeton.EDU> | Tue Feb 04 07:57:10 2014 -0500 |
tree | d952ac18c3395d2de2940b8e927a6e4bce74c89d | |
parent | 7d018caab5dd607b6050e2ba5611ac631772f67f [diff] [blame] |
added rbac for viewing objects
diff --git a/planetstack/core/models/serviceclass.py b/planetstack/core/models/serviceclass.py index ce3eaee..3b6ee82 100644 --- a/planetstack/core/models/serviceclass.py +++ b/planetstack/core/models/serviceclass.py
@@ -27,4 +27,6 @@ except ServiceClass.DoesNotExist: return None - + def save_by_user(self, user, *args, **kwds): + if self.can_update(user): + super(ServiceClass, self).save(*args, **kwds)