Skip to content

Composable permissions issue (v3.9) #6296

@backbohne

Description

@backbohne

While trying out the new composable permission feature, I have the following problem:

>>> IsAuthenticated & IsStaff | IsAuthenticatedWithTwoFactor & IsCustomer
Traceback (most recent call last):
  File "/usr/lib/python3.6/code.py", line 91, in runcode
    exec(code, self.locals)
  File "<console>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'OperandHolder' and 'OperandHolder'
>>>

It seems that is posible to compose like

(IsAuthenticated | IsStaff) & IsAuthenticatedWithTowFactor

but compose two composed permissions will not work :-(

Regards
Frank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions