feat: lms student role

This commit is contained in:
Jannat Patel
2023-09-29 17:14:00 +05:30
parent c82c10d17e
commit be23220e01
14 changed files with 88 additions and 25 deletions

View File

@@ -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