New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: checks on session and role-invite api and owner role #6131
fix: checks on session and role-invite api and owner role #6131
Conversation
c3295d1
to
4d22009
Compare
4d22009
to
bb744bf
Compare
Codecov Report
@@ Coverage Diff @@
## development #6131 +/- ##
===============================================
- Coverage 66.4% 66.38% -0.02%
===============================================
Files 286 286
Lines 14359 14366 +7
===============================================
+ Hits 9535 9537 +2
- Misses 4824 4829 +5
Continue to review full report at Codecov.
|
@kushthedude @mrsaicharan1 @uds5501 please review |
bb744bf
to
f9ddce8
Compare
@uds5501 @kushthedude @mrsaicharan1 please review :) |
migrations/versions/43e8c59337ag_.py
Outdated
|
||
|
||
def upgrade(): | ||
op.execute("INSERT INTO permissions(role_id, service_id, can_create, can_read, can_update, can_delete) VALUES((SELECT id FROM roles WHERE name='owner'), 1, true, true, true, true)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why hardcoding service_id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iamareebjamal fixed it. Please have a look
Fixes #6125
Short description of what this resolves:
There were bugs -
Changes proposed in this pull request:
Checklist
development
branch.