Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537848a commit ef772cbCopy full SHA for ef772cb
‎client/packages/lowcoder/src/util/permissionUtils.ts
@@ -3,9 +3,7 @@ import { ApplicationMeta } from "constants/applicationConstants";
3
import { User } from "constants/userConstants";
4
5
6
-export function currentOrgAdmin(user: User) {
7
- console.log("userRole", user.orgRoleMap.get(user.currentOrgId));
8
-
+export function currentOrgAdmin(user: User) {
9
return user.orgRoleMap.get(user.currentOrgId) === ADMIN_ROLE;
10
}
11
0 commit comments