Compare commits
4 Commits
42800a9d99
...
cc29893e04
Author | SHA1 | Date |
---|---|---|
Tim Gröger | cc29893e04 | |
Tim Gröger | 6061b37887 | |
Tim Gröger | efde9a2ee7 | |
Tim Gröger | e96d15bc66 |
|
@ -73,6 +73,10 @@ export const useUserStore = defineStore({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
async deleteAvatar(user: FG.User) {
|
||||||
|
await api.delete(`/users/${user.userid}/avatar`)
|
||||||
|
},
|
||||||
|
|
||||||
async getPermissions(force = false) {
|
async getPermissions(force = false) {
|
||||||
if (force || this.permissions.length === 0) {
|
if (force || this.permissions.length === 0) {
|
||||||
const { data } = await api.get<FG.Permission[]>('/roles/permissions');
|
const { data } = await api.get<FG.Permission[]>('/roles/permissions');
|
||||||
|
|
Loading…
Reference in New Issue