mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-28 16:06:41 +01:00
add EDITOR, VIEWER as default roles
This commit is contained in:
@@ -166,7 +166,12 @@ export const ProjectContextProvider: React.FC = ({ children }) => {
|
||||
() =>
|
||||
Array.isArray(tables)
|
||||
? Array.from(
|
||||
new Set(tables.reduce((a, c) => [...a, ...c.roles], ["ADMIN"]))
|
||||
new Set(
|
||||
tables.reduce(
|
||||
(a, c) => [...a, ...c.roles],
|
||||
["ADMIN", "EDITOR", "VIEWER"]
|
||||
)
|
||||
)
|
||||
)
|
||||
: [],
|
||||
[tables]
|
||||
|
||||
Reference in New Issue
Block a user