Available Cornerstone capabilities

So if I have a user role e.g. ‘admin’ with administrator capabilities.
Which capability can I remove to get rid of the
Cornerstone ->Theme Options
Cornerstone ->Settings
in the admin area. This will mean I don’t have to worry about the clients users messing up their components or other settings.

function remove_cornerstone_settings() {
	$role = get_role( 'admin' );
	//$role->remove_cap( '?' );
	//$role->remove_cap( '?' );
	
}
remove_cornerstone_settings();

Thanks

Also separately on further research.
With my custom user role below my user with this role still has access to all of the Components / Layouts available to edit.

I added my custom role with this code

add_role( 'admin', 'Admin', get_role( 'administrator' )->capabilities );

Thanks

Hi Sam,

Answering your question is beyond the scope of our Theme support. I would suggest you avail of our newly launched service called One, where we answer questions beyond normal theme support.

Thanks

OK well the first post it should be a public part of the docs as a basic list available capabilities so I’m not sure why I need special requirement on this?

My Second post shows the intended functionality is broken.

So maybe these can be flagged for a dev / should we move this into the other forum?

Thanks

Hi Sam,

Adding a new Role is a part of customization and as I said before that is beyond the scope of Theme Support.

Thanks

Oh right adding a new Role was the issue. So not really supported.

Thanks anyway

Hi Sam,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.