AdminSettingForm show and hide for different user role

This commit is contained in:
Krad
2021-11-23 09:21:36 +08:00
parent 5c4e3453dd
commit b31bcbcf63
4 changed files with 41 additions and 3 deletions

View File

@@ -59,6 +59,7 @@ public:
mf_Password = false;
}
bool submitChange();
bool isAdmin();
private:
static User* currentUser;
@@ -70,6 +71,7 @@ private:
USER_PROPERTIES_MACRO()
#undef USER_PROPERTY
#undef USER_READONLY_PROPERTY
int isAdminFlag = -1;
};