updated edit and subscription for events to check the user permissions