Details
Description
It appears that logic for tell a friend is validating the wrong eventID and looks for permission on a lower event id. If that event is deleted then it generates a permission error.
Currently reproduced on demo system.
Created 10 test events probably didn't need that many (goal was to bump event ID increment)
Deleted test event 1 to 5
Tried to disable "Tell A Friend" on Event 9
Caused an error:
Sorry but we are not able to provide this at the moment.
You do not have permission to access this page
I think it is the event ID handling.
See thread for backtrace:
Added issue as per Lobo.
ref: http://forum.civicrm.org/index.php/topic,28765.0.html