refac
This commit is contained in:
1 parent
ef6d4f2d6c
commit
fd3368c0bf
2 files changed
+13
No files matched your search
@@ -522,6 +522,18 @@ async def ldap_auth(
|
|||||||
db=db,
|
db=db,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if request.app.state.config.WEBHOOK_URL:
|
||||||
|
await post_webhook(
|
||||||
|
request.app.state.WEBUI_NAME,
|
||||||
|
request.app.state.config.WEBHOOK_URL,
|
||||||
|
WEBHOOK_MESSAGES.USER_SIGNUP(user.name),
|
||||||
|
{
|
||||||
|
'action': 'signup',
|
||||||
|
'message': WEBHOOK_MESSAGES.USER_SIGNUP(user.name),
|
||||||
|
'user': user.model_dump_json(exclude_none=True),
|
||||||
|
},
|
||||||
|
)
|
||||||
|
|
||||||
except HTTPException:
|
except HTTPException:
|
||||||
raise
|
raise
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ class SharingPermissions(BaseModel):
|
|||||||
public_skills: bool = False
|
public_skills: bool = False
|
||||||
notes: bool = False
|
notes: bool = False
|
||||||
public_notes: bool = True
|
public_notes: bool = True
|
||||||
|
public_chats: bool = False
|
||||||
|
|
||||||
|
|
||||||
class AccessGrantsPermissions(BaseModel):
|
class AccessGrantsPermissions(BaseModel):
|
||||||
|
|||||||
Reference in new issue
Block a user