Share via


Как спратятьпоказать контрол или любой другой элемент на странице в зависимости от прав пользователя

??? ???????? ?????????? ?????????????? ?? SPSecurityTrimmedControl ?????  ?????????? ?????????? ??? ???????? ???? ????????????.

??????: 

<Sharepoint:SPSecurityTrimmedControl runat="server" PermissionsString="DeleteListItems">

  <a href="https://blogs.technet.com/controlpanel/blogs/posteditor.aspx?SelectedNavItem=NewPost§ionid=5542&bpt=1#">?????? ????? ?????? ???, ??? ????? ??????? ???????? ??????</a>

</Sharepoint:SPSecurityTrimmedControl>

Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)

?????? ???? ???????? Permissions ????? ??????????? ??? .

??????, Permissions ????? ??????????? ????? ??????? ? ?????????, ??? ??? ????????????. (PermissionMode = All ??? PermissionMode = Any )