2013年にVS経由で展開されたMasterPageでセキュリティトリミングを使用する方法は何ですか?
-
10-12-2019 - |
質問
しかし、「.master」ファイルを展開しており、VSパッケージを介してMasterPageを設定しています。ユーザー権限に基づいてリボンを非表示にするためにマスターページでセキュリティトリミングを実行できる方法は何ですか?(VSプロジェクトを開き、この '.master'ファイル)を変更することができます)
私はこれがSP2010でこれを行う記事は、SP2013で使用することをお勧めしますか?'読み取り専用'許可を得て、ユーザーからリボンを隠すことができますか?
解決
If you have to show/hide parts of the Ribbon based on permissions then SPSecurityTrimmedControl
is the ideal way to do it even if you are on SP 2013. You can use ViewListItems
permissions to hide the Ribbon from users with Read Only
permissions. See this http://msdn.microsoft.com/EN-US/library/ms412690 for all possible types of Permissions which can be used.
所属していません sharepoint.stackexchange