Implements a custom manager for the Experiment model which checks the authorisation rules for the requesting user first
To make this work, the request must be passed to all class functions. The username and the group memberships are then resolved via the request.groups and request.user objects.
The tardis.tardis_portal.auth.AuthService is responsible for filling the request.groups object.
Returns all experiments a user - either authenticated or anonymous - is allowed to see and search
Parameters: | request (django.http.HttpRequest) – a HTTP Request instance |
---|
returns a list of groups which have external ACL rules
Parameters: |
|
---|
Returns an experiment under the consideration of the ACL rules Raises PermissionDenied if the user does not have access.
Parameters: |
|
---|
Return all experiments which are owned by a particular user
Parameters: | request (django.http.HttpRequest) – a HTTP Request instance |
---|
returns a list of sytem-owned groups which have ACL rules associated with this experiment
Parameters: |
|
---|
Returns a list of ACL rules associated with this experiment.
Parameters: |
|
---|
returns a list of user owned-groups which have ACL rules associated with this experiment
Parameters: |
|
---|
Returns a list of users who have ACL rules associated with this experiment.
Parameters: |
|
---|