mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
feat: new editor user permission profile (#4435)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
co-authored by
crazywoola
crazywoola
parent
cdb6c801c1
commit
8bcc5a36bb
@@ -4,9 +4,11 @@ from models.account import TenantAccountRole
|
||||
def test_account_is_privileged_role() -> None:
|
||||
assert TenantAccountRole.ADMIN == 'admin'
|
||||
assert TenantAccountRole.OWNER == 'owner'
|
||||
assert TenantAccountRole.EDITOR == 'editor'
|
||||
assert TenantAccountRole.NORMAL == 'normal'
|
||||
|
||||
assert TenantAccountRole.is_privileged_role(TenantAccountRole.ADMIN)
|
||||
assert TenantAccountRole.is_privileged_role(TenantAccountRole.OWNER)
|
||||
assert not TenantAccountRole.is_privileged_role(TenantAccountRole.NORMAL)
|
||||
assert not TenantAccountRole.is_privileged_role(TenantAccountRole.EDITOR)
|
||||
assert not TenantAccountRole.is_privileged_role('')
|
||||
|
||||
Reference in New Issue
Block a user