Compare commits
No commits in common. "631f8ec4b39a38ac6efc13ccd78a531097431d01" and "ae8a513c9d6f672943162060d25a4cad58adcefd" have entirely different histories.
631f8ec4b3
...
ae8a513c9d
@ -485,6 +485,8 @@ const onboardingUrl = ref("/onboarding");
|
||||
const doLogin = () => login("/account");
|
||||
|
||||
const copied = reactive({});
|
||||
const isPortalAdmin = () => Array.isArray(auth.groups) && auth.groups.includes("admin");
|
||||
|
||||
onMounted(() => {
|
||||
if (auth.ready && auth.authenticated) {
|
||||
refreshOverview();
|
||||
@ -585,7 +587,7 @@ async function refreshOverview() {
|
||||
}
|
||||
|
||||
async function refreshAdminRequests() {
|
||||
if (!auth.authenticated) {
|
||||
if (!isPortalAdmin()) {
|
||||
admin.enabled = false;
|
||||
admin.requests = [];
|
||||
return;
|
||||
@ -621,7 +623,7 @@ async function refreshAdminRequests() {
|
||||
}
|
||||
|
||||
async function refreshAdminFlags() {
|
||||
if (!auth.authenticated) {
|
||||
if (!isPortalAdmin()) {
|
||||
admin.flags = [];
|
||||
admin.flagsLoading = false;
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user