Skip to content

Commit 16f6170

Browse files
committed
fix(api): check Student Group read permission per document
1 parent e20c9b2 commit 16f6170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

education/education/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def get_student_group_students(student_group, include_inactive=0):
220220
221221
:param student_group: Student Group.
222222
"""
223-
if not frappe.has_permission("Student Group", "read"):
223+
if not frappe.has_permission("Student Group", "read", student_group):
224224
raise frappe.PermissionError(_("You are not authorized to access this student group"))
225225

226226
if include_inactive:

0 commit comments

Comments
 (0)