commit | 5cde5f8902b9b6a03bca030c68024e8c5830bf36 | [log] [tgz] |
---|---|---|
author | Tony Mack <tmack@tux.cs.princeton.edu> | Wed Aug 20 09:06:55 2014 -0400 |
committer | Tony Mack <tmack@tux.cs.princeton.edu> | Wed Aug 20 09:06:55 2014 -0400 |
tree | b637d6b8192d64c1ee17306bac94ff5b66af1a1a | |
parent | be8f85044e13571d6901982575d41a2ad82a755b [diff] |
pis can update slice objects
diff --git a/planetstack/core/models/slice.py b/planetstack/core/models/slice.py index 50b10c5..e80128e 100644 --- a/planetstack/core/models/slice.py +++ b/planetstack/core/models/slice.py
@@ -53,7 +53,7 @@ return True slice_privs = SlicePrivilege.objects.filter(user=user, slice=self) for slice_priv in slice_privs: - if slice_priv.role.role == 'admin': + if slice_priv.role.role in ['admin', 'pi'] : return True return False