/// <summary> /// 更新角色的条件 /// </summary> /// <param name="owner"></param> /// <returns></returns> public SCConditionOwner UpdateRoleConditions(SCConditionOwner owner) { SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateRoleConditions, owner); if (this._NeedCheckPermissions) CheckApplicationMemberPermissions(SCOperationType.UpdateRoleConditions, "ModifyMembersInRoles", owner.OwnerID); SCConditionOwner result = null; ExecuteWithActions(SCOperationType.UpdateRoleConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute())); return result; }
/// <summary> /// 更新角色的条件 /// </summary> /// <param name="owner"></param> /// <returns></returns> public SCConditionOwner UpdateRoleConditions(SCConditionOwner owner) { SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateRoleConditions, owner); if (this._NeedCheckPermissions) { CheckApplicationMemberPermissions(SCOperationType.UpdateRoleConditions, "ModifyMembersInRoles", owner.OwnerID); } SCConditionOwner result = null; ExecuteWithActions(SCOperationType.UpdateRoleConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute())); return(result); }
/// <summary> /// 更新群组的条件 /// </summary> /// <param name="owner"></param> /// <returns></returns> public SCConditionOwner UpdateGroupConditions(SCConditionOwner owner) { SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateGroupConditions, owner); if (this._NeedCheckPermissions) CheckOrganizationChildrenPermissions(SCOperationType.UpdateGroupConditions, "EditMembersOfGroups", owner.OwnerID); SCConditionOwner result = null; ExecuteWithActions(SCOperationType.UpdateGroupConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute())); return result; }
/// <summary> /// 更新群组的条件 /// </summary> /// <param name="owner"></param> /// <returns></returns> public SCConditionOwner UpdateGroupConditions(SCConditionOwner owner) { SCUpdateConditionsExecutor executor = new SCUpdateConditionsExecutor(SCOperationType.UpdateGroupConditions, owner); if (this._NeedCheckPermissions) { CheckOrganizationChildrenPermissions(SCOperationType.UpdateGroupConditions, "EditMembersOfGroups", owner.OwnerID); } SCConditionOwner result = null; ExecuteWithActions(SCOperationType.UpdateGroupConditions, () => SCActionContext.Current.DoActions(() => result = (SCConditionOwner)executor.Execute())); return(result); }