Skip to content

Commit

Permalink
add missing requirements (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored Nov 17, 2021
1 parent f1dff07 commit 64164b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ python-multipart>=0.0.5
itsdangerous>=1.1.0
sentry-asgi>=0.1.5
databases[postgresql,mysql,sqlite]
SQLAlchemy==1.3.20
SQLAlchemy-Utils>=0.33.11
mysqlclient>=1.4.2
cached-property>=1.5.1
st2client==3.3.0
rule
authlib
httpx
fastapi
rule==0.1.1
Authlib==0.15.2
httpx==0.*
fastapi==0.*
2 changes: 1 addition & 1 deletion frontend/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default new Vuex.Store({
},
getters: {
isAdmin: (state) => {
return state.userProfile.is_admin
return state.userProfile.roles.includes("admin")
},
isAuthenticated: (state) => {
if (state.userProfile) {
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SQLAlchemy==1.3.20
aiofiles
Jinja2>=2.10.1
starlette>=0.11.4
Expand Down

0 comments on commit 64164b3

Please sign in to comment.