Skip to content

Commit

Permalink
fix(market): do not show progress if user is not authorized, close #39
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Oct 19, 2022
1 parent ef0f83c commit 99b2183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/market/client/market/progress.vue
Expand Up @@ -12,6 +12,7 @@ import { store } from '@koishijs/client'
import { computed } from 'vue'
const isLoading = computed(() => {
if (!store['user'] || store['user'].authority < 4) return false
return !store.market || store.market.total > store.market.progress
})
Expand Down
2 changes: 1 addition & 1 deletion packages/market/package.json
@@ -1,7 +1,7 @@
{
"name": "@koishijs/plugin-market",
"description": "Manage your bots and plugins with console",
"version": "1.4.0",
"version": "1.4.1",
"main": "lib/node/index.js",
"typings": "lib/index.d.ts",
"exports": {
Expand Down

0 comments on commit 99b2183

Please sign in to comment.