Click or drag to resize

IUserCanReach Method

Indicates if the current user is allowed to reach the specified contact.

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
bool CanReach(
	ContactType contactType,
	Nullable<int> contactId = null
)

Parameters

contactType
Type: AskiaPortalCmnContactType
Type of the contact to verify
contactId (Optional)
Type: SystemNullableInt32
Id of the contact, the null value is only allowed for Everybody

Return Value

Type: Boolean
Returns true if the current user is able to reach the specified contact.
Remarks

This method always return true if the user have the permission to ReachEverybody or IsSuperAdmin.

This method always return true for the contact Group or the contact User, when the user have the permission to ManageAllGroups.

This method always return true when the contact is the user himself or his membership groups.

See Also