From 850dfd0358e5f92cec29963e6ac65b07d2ffc77c Mon Sep 17 00:00:00 2001 From: scmmishra Date: Wed, 7 Nov 2018 22:12:31 +0530 Subject: [PATCH] Set appropriate permissions --- .../education/doctype/article/article.json | 42 +++++++++++++++- .../education/doctype/content/content.json | 23 ++++++++- erpnext/education/doctype/course/course.json | 14 +++--- .../course_activity/course_activity.json | 23 ++++++++- .../course_enrollment/course_enrollment.json | 23 ++++++++- .../education/doctype/program/program.json | 48 +++++++++++++++++-- .../program_enrollment.json | 2 +- .../education/doctype/question/question.json | 42 +++++++++++++++- erpnext/education/doctype/quiz/quiz.json | 23 ++++++++- .../doctype/quiz_activity/quiz_activity.json | 23 ++++++++- .../education/doctype/student/student.json | 21 +++++++- erpnext/education/doctype/video/video.json | 42 +++++++++++++++- 12 files changed, 296 insertions(+), 30 deletions(-) diff --git a/erpnext/education/doctype/article/article.json b/erpnext/education/doctype/article/article.json index e879731160..0fdeeef918 100644 --- a/erpnext/education/doctype/article/article.json +++ b/erpnext/education/doctype/article/article.json @@ -153,7 +153,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-17 06:56:50.621421", + "modified": "2018-11-07 21:19:29.051716", "modified_by": "Administrator", "module": "Education", "name": "Article", @@ -173,11 +173,49 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "LMS User", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 1, diff --git a/erpnext/education/doctype/content/content.json b/erpnext/education/doctype/content/content.json index 053372ff21..fa7fe577a2 100644 --- a/erpnext/education/doctype/content/content.json +++ b/erpnext/education/doctype/content/content.json @@ -515,7 +515,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-16 15:50:59.193504", + "modified": "2018-11-07 21:20:03.136554", "modified_by": "Administrator", "module": "Education", "name": "Content", @@ -535,7 +535,7 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Instructor", "set_user_permissions": 0, "share": 1, "submit": 0, @@ -559,6 +559,25 @@ "share": 1, "submit": 0, "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "LMS User", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 0, diff --git a/erpnext/education/doctype/course/course.json b/erpnext/education/doctype/course/course.json index 148077877c..c145b2d7d7 100644 --- a/erpnext/education/doctype/course/course.json +++ b/erpnext/education/doctype/course/course.json @@ -478,7 +478,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2018-10-19 13:03:09.310985", + "modified": "2018-11-07 21:20:21.941865", "modified_by": "Administrator", "module": "Education", "name": "Course", @@ -517,17 +517,17 @@ "print": 1, "read": 1, "report": 1, - "role": "HR Manager", + "role": "Instructor", "set_user_permissions": 0, "share": 1, "submit": 0, "write": 1 - }, + }, { "amend": 0, "cancel": 0, - "create": 1, - "delete": 1, + "create": 0, + "delete": 0, "email": 1, "export": 1, "if_owner": 0, @@ -536,11 +536,11 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "LMS User", "set_user_permissions": 0, "share": 1, "submit": 0, - "write": 1 + "write": 0 } ], "quick_entry": 0, diff --git a/erpnext/education/doctype/course_activity/course_activity.json b/erpnext/education/doctype/course_activity/course_activity.json index 853bd46588..66bbdeb6b5 100644 --- a/erpnext/education/doctype/course_activity/course_activity.json +++ b/erpnext/education/doctype/course_activity/course_activity.json @@ -224,7 +224,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-25 20:30:34.573440", + "modified": "2018-11-07 21:15:03.187253", "modified_by": "Administrator", "module": "Education", "name": "Course Activity", @@ -244,7 +244,7 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, @@ -268,6 +268,25 @@ "share": 1, "submit": 0, "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 1, diff --git a/erpnext/education/doctype/course_enrollment/course_enrollment.json b/erpnext/education/doctype/course_enrollment/course_enrollment.json index 47bb973d5d..5de7f21493 100644 --- a/erpnext/education/doctype/course_enrollment/course_enrollment.json +++ b/erpnext/education/doctype/course_enrollment/course_enrollment.json @@ -190,7 +190,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-24 16:05:02.961543", + "modified": "2018-11-07 21:16:34.764628", "modified_by": "Administrator", "module": "Education", "name": "Course Enrollment", @@ -210,7 +210,7 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, @@ -234,6 +234,25 @@ "share": 1, "submit": 0, "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 1, diff --git a/erpnext/education/doctype/program/program.json b/erpnext/education/doctype/program/program.json index 4628da801e..3b78df99af 100644 --- a/erpnext/education/doctype/program/program.json +++ b/erpnext/education/doctype/program/program.json @@ -476,7 +476,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2018-11-05 18:59:59.784033", + "modified": "2018-11-07 21:14:10.011904", "modified_by": "Administrator", "module": "Education", "name": "Program", @@ -502,6 +502,25 @@ "submit": 0, "write": 1 }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 1 + }, { "amend": 0, "cancel": 0, @@ -524,8 +543,8 @@ { "amend": 0, "cancel": 0, - "create": 1, - "delete": 1, + "create": 0, + "delete": 0, "email": 1, "export": 1, "if_owner": 0, @@ -534,11 +553,30 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "LMS User", "set_user_permissions": 0, "share": 1, "submit": 0, - "write": 1 + "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Student", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 0, diff --git a/erpnext/education/doctype/program_enrollment/program_enrollment.json b/erpnext/education/doctype/program_enrollment/program_enrollment.json index 6e1a0c34fd..1d8a4344a7 100644 --- a/erpnext/education/doctype/program_enrollment/program_enrollment.json +++ b/erpnext/education/doctype/program_enrollment/program_enrollment.json @@ -715,7 +715,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2018-11-03 17:52:44.017627", + "modified": "2018-11-07 21:13:06.502279", "modified_by": "Administrator", "module": "Education", "name": "Program Enrollment", diff --git a/erpnext/education/doctype/question/question.json b/erpnext/education/doctype/question/question.json index cca89cff50..b7b3ca8eca 100644 --- a/erpnext/education/doctype/question/question.json +++ b/erpnext/education/doctype/question/question.json @@ -91,7 +91,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-18 15:31:28.471650", + "modified": "2018-11-07 21:18:19.991825", "modified_by": "Administrator", "module": "Education", "name": "Question", @@ -111,11 +111,49 @@ "print": 1, "read": 1, "report": 1, - "role": "Administrator", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "LMS User", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 1, diff --git a/erpnext/education/doctype/quiz/quiz.json b/erpnext/education/doctype/quiz/quiz.json index 25b9690451..cf69571da0 100644 --- a/erpnext/education/doctype/quiz/quiz.json +++ b/erpnext/education/doctype/quiz/quiz.json @@ -154,7 +154,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-11-02 10:58:56.590859", + "modified": "2018-11-07 21:14:30.782586", "modified_by": "Administrator", "module": "Education", "name": "Quiz", @@ -174,7 +174,7 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, @@ -198,6 +198,25 @@ "share": 1, "submit": 0, "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 1 } ], "quick_entry": 1, diff --git a/erpnext/education/doctype/quiz_activity/quiz_activity.json b/erpnext/education/doctype/quiz_activity/quiz_activity.json index f2aeea130f..4969bc657e 100644 --- a/erpnext/education/doctype/quiz_activity/quiz_activity.json +++ b/erpnext/education/doctype/quiz_activity/quiz_activity.json @@ -413,7 +413,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-25 20:29:08.305410", + "modified": "2018-11-07 21:16:14.515079", "modified_by": "Administrator", "module": "Education", "name": "Quiz Activity", @@ -433,7 +433,7 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, @@ -457,6 +457,25 @@ "share": 1, "submit": 0, "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 1, diff --git a/erpnext/education/doctype/student/student.json b/erpnext/education/doctype/student/student.json index cdb66b033f..2e055bb1b1 100644 --- a/erpnext/education/doctype/student/student.json +++ b/erpnext/education/doctype/student/student.json @@ -1188,7 +1188,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2018-10-12 16:46:31.504987", + "modified": "2018-11-07 22:11:03.824250", "modified_by": "Administrator", "module": "Education", "name": "Student", @@ -1251,6 +1251,25 @@ "share": 1, "submit": 0, "write": 0 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "LMS User", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 0, diff --git a/erpnext/education/doctype/video/video.json b/erpnext/education/doctype/video/video.json index d8c3368d93..dd81e97e23 100644 --- a/erpnext/education/doctype/video/video.json +++ b/erpnext/education/doctype/video/video.json @@ -185,7 +185,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2018-10-18 12:26:47.709081", + "modified": "2018-11-07 21:19:09.321439", "modified_by": "Administrator", "module": "Education", "name": "Video", @@ -205,11 +205,49 @@ "print": 1, "read": 1, "report": 1, - "role": "System Manager", + "role": "Academics User", "set_user_permissions": 0, "share": 1, "submit": 0, "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Instructor", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "amend": 0, + "cancel": 0, + "create": 0, + "delete": 0, + "email": 1, + "export": 1, + "if_owner": 0, + "import": 0, + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "LMS User", + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 0 } ], "quick_entry": 1,