Skip to content

Commit

Permalink
fix: Adjust third-party user policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Oct 5, 2023
1 parent 3ad2f89 commit da09790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmcl-keystone-ui/src/views/AppLoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ const getUserServiceAccount = (serv: string) => {
// Authority items
const { data: services } = injection(kYggdrasilServices)
const { state: setting } = injection(kSettingsState)
const items = useAuthorityItems(computed(() => !!setting.value?.developerMode), computed(() => services.value || []))
const { users } = injection(kUserContext)
const items = useAuthorityItems(computed(() => !!setting.value?.developerMode || users.value.some(u => u.authority === AUTHORITY_MICROSOFT)), computed(() => services.value || []))
// Account history
const { authority, history } = useAccountSystemHistory()
Expand Down

0 comments on commit da09790

Please sign in to comment.