mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
feat: Anonymous guest permissions (#10726)
* Anonymous guest permissions Signed-off-by: Artem Savchenko <armisav@gmail.com> * Fix channels dropdown Signed-off-by: Artem Savchenko <armisav@gmail.com> * Update guest layout Signed-off-by: Artem Savchenko <armisav@gmail.com> --------- Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
if (g.enabled ?? true) return false
|
||||
const role = getCurrentAccount().role
|
||||
if (role === g.role) return true
|
||||
// DocGuest / ReadOnlyGuest should also respect Guest module disables.
|
||||
return (role === AccountRole.DocGuest || role === AccountRole.ReadOnlyGuest) && g.role === AccountRole.Guest
|
||||
// DocGuest should also respect Guest module disables.
|
||||
return role === AccountRole.DocGuest && g.role === AccountRole.Guest
|
||||
})
|
||||
.map((g) => g.application as Ref<Application>)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user