When a user with no system manager role cant make changes to milestones in projects, i get an "user not allowed to delete" error.
The user is marked as Project User, and Project Manager.
Also user cant delete projects from project list.
Looks like a problem in the event creation for milestones.
And one more thing, the user without system manager role, can't see the milestones in the calendar.
The console shows the following text:
Traceback (innermost last):
File "../lib/webnotes/widgets/form/save.py", line 36, in savedocs
getattr(wrapper, action.lower())()
File "../lib/webnotes/model/bean.py", line 284, in save
self.run_method('on_update')
File "../lib/webnotes/model/bean.py", line 218, in run_method
getattr(self.obj, method)()
File "../app/projects/doctype/project/project.py", line 68, in on_update
self.add_calendar_event()
File "../app/projects/doctype/project/project.py", line 72, in add_calendar_event
self.delete_events()
File "../app/projects/doctype/project/project.py", line 94, in delete_events
where ref_type=%s and ref_name=%s""", (self.doc.doctype, self.doc.name)))
File "../lib/webnotes/__init__.py", line 335, in delete_doc
webnotes.model.utils.delete_doc(doctype, n)
File "../lib/webnotes/model/utils.py", line 163, in delete_doc
check_permission_and_not_submitted(doctype, name)
File "../lib/webnotes/model/utils.py", line 190, in check_permission_and_not_submitted
webnotes.msgprint(_("User not allowed to delete."), raise_exception=True)
File "../lib/webnotes/__init__.py", line 135, in msgprint
raise ValidationError, msg
ValidationError: User not allowed to delete.
all-app.min.js:307 User not allowed to delete.