public override void DeniedBy(SystemAdmin admin, SystemPermission permission) { if (!permission.Admin.Equals(admin)) { return; } permission.Granted = false; permission.UnixPermissionGranted = false; permission.State = PermissionState.DENIED; NotifyUserOfPermissionRequestResult(); }
public override void GrantedBy(SystemAdmin admin, SystemPermission permission) { if (!permission.Admin.Equals(admin)) { return; } if (permission.Profile.IsUnixPermissionRequired() && !permission.IsUnixPermissionGranted()) { permission.State = PermissionState.UNIX_REQUESTED; NotifyUnixAdminsOfPermissionRequest(); return; } permission.State = PermissionState.GRANTED; permission.Granted = true; NotifyUserOfPermissionRequestResult(); }
public override void ClaimedBy(SystemAdmin admin, SystemPermission permission) { WillBeHandledBy(admin); permission.State = PermissionState.UNIX_CLAIMED; }
public virtual void DeniedBy(SystemAdmin admin, SystemPermission permission) { // do nothing. }