We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Based on our #3208, we need to adjust necessary back python logic, to incorporate the following:
New Role: create a new role type, owned by current user.
INSERT INTO RoleType (RoleType) VALUES (‘new-role’); INSERT INTO Role (RoleOwner, RoleTypeID, UserID) SELECT ‘1’, RoleType.RoleTypeID, Account.UserID FROM Account OUTER JOIN RoleType ON RoleType.RoleType = ‘new-role’ WHERE Account.Username = ‘current-user’
The above implementation will likely occur in the applications backend code.
query = '''\ INSERT INTO RoleType (RoleType) VALUES (%s); ''' args = (role_type) cur.execute(query, args) query = '''\ INSERT INTO Role (RoleOwner, RoleTypeID, UserID) SELECT %s, RoleType.RoleTypeID, Account.UserID FROM Account OUTER JOIN RoleType ON RoleType.RoleType = %s WHERE Account.Username = %s ''' args = (role_owner, role_type, username) cur.execute(query, args)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Based on our #3208, we need to adjust necessary back python logic, to incorporate the following:
New Role: create a new role type, owned by current user.
The above implementation will likely occur in the applications backend code.
The text was updated successfully, but these errors were encountered: