feat: lms student role
This commit is contained in:
@@ -585,7 +585,7 @@ def validate_image(path):
|
||||
if path and "/private" in path:
|
||||
file = frappe.get_doc("File", {"file_url": path})
|
||||
file.is_private = 0
|
||||
file.save(ignore_permissions=True)
|
||||
file.save()
|
||||
return file.file_url
|
||||
return path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user