Diocese of St. Petersburg 2019

User Role Issues: Schools & Clergy

Assigned to
Ryan Ross, Developer at Diocesan Ryan R.
Notes
edit_clergy edit_deacons edit_priests edit_religious edit_schools are all in User Role Editor as an option, but checking any of those has no effect on what users can actually see.
We need to be able to access Clergy and Schools as user role options.

Right now, edit_parishes is the only one that works correctly.

Note for Veronica: Once this is completed, updated Chancellor, Schools Author, and Diaconate user roles.

Comments & Events

Ryan Ross, Developer at Diocesan
So this was kind of strange.  I believe I have this fixed, but I don't know exactly why this fixes it, or why edit_parishes worked in the first place.

The add_menu_page() function takes a third required argument of capability.  This was originally set to 'edit_theme_files', which at a general level seemed to work and make sense.

Logically, all we would have to do is lower the capability to something like add_posts, or just "read".  But to my surprise, that doesn't work.  Ironically, if I eliminate the capability (keep in mind that it's required) then viola, the menu and sub menu items work as you would expect.

I tested a Schools admin user and found it working.
Veronica Alvarado, Project Manager at Diocesan Thank you!👍
Ryan Ross, Developer at Diocesan
Ryan Ross completed this to-do.