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();
        }
예제 #2
0
        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;
        }
예제 #4
0
 public virtual void DeniedBy(SystemAdmin admin, SystemPermission permission)
 {
     // do nothing.
 }