Allow Webform to be used with the D.T admin role
Closed this issue · 3 comments
corsacca commented
If a user only has the dt admin role, then they can't access the webform settings.
squigglybob commented
@corsacca I can take this one
squigglybob commented
webform settings seem to be accessible with only dt_admin role set.
Maybe this is already fixed?
squigglybob commented
Nope it wasn't fixed. Clicking on 'add new form' resulted in the permission denied error which states that the user can't create a page.
I've changed the dt_webform
post type to have capability_type => 'post'
instead of page, and that seems to fix it.
@ChrisChasm @corsacca
Is it ok to change the capability type on this posttype? Or would it be better to add the capability of editing a page to the dt_admin role?