Fixing an issue with page not loading.
This commit is contained in:
parent
89fce7b2e3
commit
dfd1815041
|
@ -9,7 +9,8 @@ function getAppRole(appId, user) {
|
|||
if (!user.roles) {
|
||||
return user
|
||||
}
|
||||
user.roleId = user.roles[appId]
|
||||
// always use the deployed app
|
||||
user.roleId = user.roles[getDeployedAppID(appId)]
|
||||
if (!user.roleId) {
|
||||
user.roleId = BUILTIN_ROLE_IDS.PUBLIC
|
||||
}
|
||||
|
@ -97,8 +98,7 @@ exports.deleteGlobalUser = async (ctx, globalId) => {
|
|||
}
|
||||
|
||||
exports.getGlobalUsers = async (ctx, appId = null, globalId = null) => {
|
||||
// always use the deployed app
|
||||
appId = getDeployedAppID(appId)
|
||||
|
||||
const endpoint = globalId
|
||||
? `/api/admin/users/${globalId}`
|
||||
: `/api/admin/users`
|
||||
|
@ -136,7 +136,6 @@ exports.getGlobalSelf = async (ctx, appId = null) => {
|
|||
}
|
||||
|
||||
exports.addAppRoleToUser = async (ctx, appId, roleId, userId = null) => {
|
||||
appId = getDeployedAppID(appId)
|
||||
let user,
|
||||
endpoint,
|
||||
body = {}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue