Example #1
0
    def get_permissions(self):
        if self.request.method == 'DELETE':
            return [
                HasPrivateAccess(),
            ]

        return [
            CanViewConceptDictionary(),
        ]
Example #2
0
    def get_permissions(self):
        if self.request.method == 'POST':
            return [
                HasOwnership(),
            ]

        return [
            CanViewConceptDictionary(),
        ]
Example #3
0
    def get_permissions(self):
        if self.request.method in ['GET', 'HEAD']:
            return [CanViewConceptDictionary()]

        return [CanEditConceptDictionary()]