Controlling Event User Access

Recently we had a client that needed to allow 1 role to be able to create events (we suggested a front end form but they opted for the admin area) and ONLY be able to create events (using the Tribe Events plugin). This was actually more tricky than I thought it would be…mostly because I was my own worst enemy.

So first I installed the plugin Adminimize (which I love now) and that took me a good deal of the way (after checking all the things they should not see). However it still seemed possible for the user to navigate away from the events area if they knew how. So I needed to add some further restrictions in the functions.php file.

Here is that function: