Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a client that would like to stop their editors from being able to delete members as this would break their site. I have hooked into the MemberService.Saving event as such
protected override void ApplicationStarted (UmbracoApplicationBase umbracoApplication,
MemberService.Deleting += MemberServiceOnDeleting;
private void MemberServiceOnDeleting(IMemberService sender, DeleteEventArgs<IMember> e)
e.Cancel = true;
However most of the time when I refresh the page all I get is a white screen and a console error
"Uncaught SyntaxError: Unexpected token <" "Application?umb__rnd=7f6480d:1".
I have hooked into events before and I don't seem to get any problems if I comment out "e.Cancel = true;".
Is there something else going on here or is this something that I really shouldn't be doing?
Any help anyone can give me on this topic would be greatly appreciated.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted