Settings is now a route instead of a dialog

This commit is contained in:
Isaac Abadi
2021-07-26 18:18:07 -07:00
parent 6e084bd94a
commit 73b9cf7893
8 changed files with 39 additions and 20 deletions

View File

@@ -498,6 +498,12 @@ export class PostsService implements CanActivate {
this.resetHttpParams();
}
hasPermission(permission) {
// assume not logged in users never have permission
if (this.config.Advanced.multi_user_mode && !this.isLoggedIn) return false;
return this.config.Advanced.multi_user_mode ? this.permissions.includes(permission) : true;
}
// user methods
register(username, password) {
const call = this.http.post(this.path + 'auth/register', {userid: username,