diff --git a/src/api/AdminApi.js b/src/api/AdminApi.js
index 6a1b1c6..aa043b4 100644
--- a/src/api/AdminApi.js
+++ b/src/api/AdminApi.js
@@ -4,7 +4,8 @@ export default class AdminApi {
permition = {
ban:false,
mute:false,
- kick:false
+ kick:false,
+ alt:false
}
async checkPermition(name) {
@@ -17,6 +18,13 @@ export default class AdminApi {
});
}
+ async checkAltAccess(){
+ return axios.options('/api/admin/db/alt').then(
+ response => {if (response.status === 200) this.permition.alt = true;
+ else this.permition.alt = false;}
+ ).catch(()=>this.permition.alt = false)
+ }
+
async load(stages) {
console.log(`[AdminAPI] request permissions`);
if (document.cookie.indexOf("steam64=") === -1) return;
@@ -24,7 +32,8 @@ export default class AdminApi {
await Promise.all([
this.checkPermition('ban'),
this.checkPermition('mute'),
- this.checkPermition('kick')
+ this.checkPermition('kick'),
+ this.checkAltAccess()
]);
stages.remove("permitions");
}
diff --git a/src/components/Others/Loader/ProfileViewer.vue b/src/components/Others/Loader/ProfileViewer.vue
index 0f5be19..19e8182 100644
--- a/src/components/Others/Loader/ProfileViewer.vue
+++ b/src/components/Others/Loader/ProfileViewer.vue
@@ -34,11 +34,11 @@ export default {
showProfileDialog: false
}),
methods: {
- getPlayer() {
- if (this.steam64.length === 0) return;
+ getPlayer(s64) {
+ if (this.steam64.length === 0 && s64 === undefined) return;
this.showProfileDialog = true;
this.loading = true;
- axios.get(`/api/profile/web?steam64=${this.steam64}&requests=${PLAYER_REQUESTS}`).then(response => {
+ axios.get(`/api/profile/web?steam64=${s64===undefined?this.steam64:s64}&requests=${PLAYER_REQUESTS}`).then(response => {
if (response.status === 200) this.player = response.data;
else console.log("not permition");
}).catch((err) => {
diff --git a/src/components/TabsMenuElements/ProfileView/Components/ProfileContainer.vue b/src/components/TabsMenuElements/ProfileView/Components/ProfileContainer.vue
index b73cdd8..d25cb3d 100644
--- a/src/components/TabsMenuElements/ProfileView/Components/ProfileContainer.vue
+++ b/src/components/TabsMenuElements/ProfileView/Components/ProfileContainer.vue
@@ -36,14 +36,14 @@
+