Allow non admins to login into the webadmin
This commit is contained in:
@@ -51,7 +51,7 @@ $GNU_SED -e "s/^pid .*/pid \/tmp\/nginx.pid;/" -i "${NGINX_ROOT}/nginx.conf"
|
||||
|
||||
# add webadmin oauth client
|
||||
readonly WEBADMIN_ID=abcdefg
|
||||
readonly WEBADMIN_SCOPES="root,profile,users,apps,settings,roleAdmin"
|
||||
readonly WEBADMIN_SCOPES="root,profile,users,apps,settings,roleUser"
|
||||
sqlite3 "${DATA_DIR}/cloudron.sqlite" "INSERT OR REPLACE INTO clients (id, appId, clientSecret, redirectURI, scope) VALUES (\"cid-webadmin\", \"webadmin\", \"secret-webadmin\", \"https://${FQDN}\", \"${WEBADMIN_SCOPES}\")"
|
||||
|
||||
# start nginx
|
||||
|
||||
+1
-1
@@ -193,7 +193,7 @@ sqlite3 "${cloudron_sqlite}" 'UPDATE apps SET installationState = "pending_resto
|
||||
# Add webadmin oauth client
|
||||
# The domain might have changed, therefor we have to update the record
|
||||
echo "Add webadmin oauth cient"
|
||||
ADMIN_SCOPES="root,profile,users,apps,settings,roleAdmin "
|
||||
ADMIN_SCOPES="root,profile,users,apps,settings,roleUser"
|
||||
sqlite3 "${cloudron_sqlite}" "INSERT OR REPLACE INTO clients (id, appId, clientSecret, redirectURI, scope) VALUES (\"cid-webadmin\", \"webadmin\", \"secret-webadmin\", \"${admin_origin}\", \"\$ADMIN_SCOPES\")"
|
||||
EOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user