restriction text implementation for the frontend

This commit is contained in:
Čarodej
2022-06-14 10:31:55 +02:00
parent ebf1b16aa5
commit aaea435eb0
7 changed files with 18 additions and 16 deletions

View File

@@ -201,10 +201,7 @@ const mutations = {
}
const getters = {
isLimitedUser: (state) =>
state.user &&
state.user.data.relationships.failedPayments &&
state.user.data.relationships.failedPayments.data.length === 3,
userLimitationReason: (state) => state.user && state.user.data.meta.restrictions.reason,
permission: (state) => state.permission,
user: (state) => state.user,
}