mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add ability to create/delete ugs from interface
This commit is contained in:
parent
4f75e6a90a
commit
d1d817678b
10 changed files with 317 additions and 25 deletions
|
|
@ -215,11 +215,7 @@ async def get_invite_codes(
|
|||
# Get invite codes
|
||||
invite_codes = r.keys(f"org_invite_code_*:org:{org.org_uuid}:code:*")
|
||||
|
||||
if not invite_codes:
|
||||
raise HTTPException(
|
||||
status_code=404,
|
||||
detail="Invite codes not found",
|
||||
)
|
||||
|
||||
|
||||
invite_codes_list = []
|
||||
|
||||
|
|
|
|||
|
|
@ -99,11 +99,7 @@ async def read_usergroups_by_org_id(
|
|||
statement = select(UserGroup).where(UserGroup.org_id == org_id)
|
||||
usergroups = db_session.exec(statement).all()
|
||||
|
||||
if not usergroups:
|
||||
raise HTTPException(
|
||||
status_code=404,
|
||||
detail="UserGroups not found",
|
||||
)
|
||||
|
||||
|
||||
# RBAC check
|
||||
await rbac_check(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue