manage the evaluation of permissions in the model
This PR adds the .is_pullable_by()
and .is_pushable_by()
methods to the Webapp
model.
The intent is to:
- gather the implementation of permissions rules in a single place : the Webapp class (instead of having them duplicated and scattered all around the views)
- make the code in the views easier to read and write
- make the code in the views future-proof (especially when we will add groups)
We can add other methods later (like .is_usable_by()
)