Folder info and permissions
This commit is contained in:
@@ -27,9 +27,13 @@ class User(pydantic.BaseModel):
|
||||
params["user_id"] = user_id
|
||||
else:
|
||||
url = "/users/current"
|
||||
return User.model_validate_json(
|
||||
RequestClient().client.get(url, params=params).text
|
||||
)
|
||||
response = RequestClient().client.get(url, params=params)
|
||||
if not response.is_success:
|
||||
QMessageBox.warning(
|
||||
None, "Error getting permissions", response.text
|
||||
)
|
||||
return
|
||||
return User.model_validate_json(response.text)
|
||||
|
||||
@staticmethod
|
||||
def delete():
|
||||
|
||||
Reference in New Issue
Block a user