This commit is contained in:
@@ -395,13 +395,14 @@
|
||||
const isAdminOrPlatform = computed(
|
||||
() => userInfo.value.user_type === 1 || userInfo.value.user_type === 2
|
||||
)
|
||||
const isProductionMode = import.meta.env.MODE === 'production'
|
||||
// const isProductionMode = import.meta.env.MODE === 'production'
|
||||
const canUseAdjustmentInCurrentEnv = (permission: string) => {
|
||||
if (isProductionMode) {
|
||||
return userInfo.value.user_type === 2 && hasAuth(permission)
|
||||
}
|
||||
// if (isProductionMode) {
|
||||
// userInfo.value.user_type === 2 &&
|
||||
return hasAuth(permission)
|
||||
// }
|
||||
|
||||
return userInfo.value.user_type === 1
|
||||
// return userInfo.value.user_type === 1
|
||||
}
|
||||
const canUpdateUsedData = computed(() => canUseAdjustmentInCurrentEnv('package:update_used_data'))
|
||||
const canUpdateExpiresAt = computed(() =>
|
||||
|
||||
Reference in New Issue
Block a user