mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-24 05:30:57 +03:00
Settings is now a route instead of a dialog
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user