ExistsFeaturePermission() public method

public ExistsFeaturePermission ( IEnumerable subjectIds, IEnumerable featureIds, PermissionType permissionType = PermissionType.Grant ) : bool
subjectIds IEnumerable
featureIds IEnumerable
permissionType PermissionType
return bool
コード例 #1
0
        public bool IsFeatureInEveryoneGroup(long featureId)
        {
            PermissionManager permissionManager = new PermissionManager();
            SubjectManager subjectManager = new SubjectManager();

            return permissionManager.ExistsFeaturePermission(subjectManager.GetGroupByName("everyone").Id, featureId);
        }