CanView and CanViewDetails
Allows you to test if an object such as an Item or Web Category can be viewed according to the current User's Roles and Permissions.
Functions:
CanView(ObjectToCheck As IObjectWithPermissions) As Boolean
CanViewDetails(ObjectToCheck As IObjectWithPermissions) As Boolean
Example:
myButton.Visible='<%# CanView(DataItem) %>'
CanBuy
Allows you to test if an Item can be purchased according to the current User's Roles and Permissions and availability if the item is not back orderable.
Functions:
CanBuy(ItemToCheck As IItem) As Boolean
Example:
myButton.Visible='<%# CanBuy(DataItem) %>'