Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
5
Reply
I Need to hide/disable "Modify View" button in ribbon
Ravi Kumar
Sep 1 2015 6:36 AM
1.1k
Reply
Dear All,
I have a scenario like i need to hide a "Modify View" Button from ribbon control for all users except spadmin/system account.
I have made hidden through CSS
<style type="text/css">
#Ribbon\.Library\.CustomViews\.ModifyView-Medium
{
display:none;
}
</style>
I have used security trimmed control in master page
<Sharepoint:SPSecurityTrimmedControl runat
=
”server” Permissions
=
”
FullMask
”>
Only users with FullMask permissions will be able to see this content.
<style type="text/css">
#Ribbon\.Library\.CustomViews\.ModifyView-Medium
{
display:block;
}
</style>
<
/
SharePoint:SPSecurityTrimmedControl>
Tried with changing
Permissions
to
"
ManageWeb
"
and etc.
i reffered this for permissions
http://www.robertkuzma.com/2011/03/security-trimmed-controls-in-sharepoint/
Have not found any solution please kindly help me out.
Many thanks in advance.
Regards,
Ravi Kumar S
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Search doesn't return all results in SharePoint Online
Changes Record Declaration Settings using CSOM