Example #1
0
 public bool CanRemoveVideoStorageServers(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.VideoStorageServer X = (OCL.VideoStorageServer)F.GetUnassignedObject(OCL.OysterUnassignedObjects.VideoStorageServer);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.VideoStorageServer),
         X.ID,OCL.OysterPermissions.CanDelete);
 }
Example #2
0
 public bool CanSee(OCL.User AccessingUser)
 {
     OCL.Functions F = new Functions();
     OCL.User DU = (OCL.User)F.GetUnassignedObject(OCL.OysterUnassignedObjects.User);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.User),
         DU.ID,OCL.OysterPermissions.IsVisible);
 }
Example #3
0
 public bool CanEditUserPermissions(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.User DU = (OCL.User)F.GetUnassignedObject(OCL.OysterUnassignedObjects.User);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.User),
         DU.ID,OCL.OysterPermissions.IsUsable);
 }
Example #4
0
 public bool CanRemoveScenes(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.Scene DS = (OCL.Scene)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Scene);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.Scene),
         DS.ID,OCL.OysterPermissions.CanDelete);
 }
Example #5
0
 public bool CanEditRecordingSessionPermissions(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.RecordingSession DRS = (OCL.RecordingSession)F.GetUnassignedObject(OCL.OysterUnassignedObjects.RecordingSession);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.RecordingSession),
         DRS.ID,OCL.OysterPermissions.CanEdit);
 }
Example #6
0
 public bool CanEditSourcePermissions(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.Source X = (OCL.Source)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Source);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.Source),
         X.ID,OCL.OysterPermissions.CanEdit);
 }
Example #7
0
 public bool CanAddControls(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.Control DC = (OCL.Control)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Control);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.Control),
         DC.ID,OCL.OysterPermissions.CanAdd);
 }
Example #8
0
 public bool CanAddAttachments(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     OCL.Functions F = new Functions();
     OCL.Attachment X = (OCL.Attachment)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Attachment);
     return F.CheckGroupObjectPermission(AccessingUser,this,Convert.ToInt32(OCL.OysterObjectType.Attachment),
         X.ID,OCL.OysterPermissions.CanAdd);
 }
Example #9
0
 public bool CanRenameSession(OCL.User AccessingUser)
 {
     if(AccessingUser.mvarIsSuperUser)
     {
         return true;
     }
     else
     {
         Functions F = new Functions();
         OCL.Group DefaultGroup = (OCL.Group)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Group);
         OCL.Permission RP = DefaultGroup.GetObjectPermission(AccessingUser,this);
         return RP.CanEdit;
     }
 }
Example #10
0
        public bool CanDeleteSession(OCL.User AccessingUser)
        {
            if(AccessingUser.mvarIsSuperUser)
            {
                return true;
            }
            else
            {
                Functions F = new Functions();
                OCL.Group DefaultGroup = (OCL.Group)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Group);
                OCL.Permission RP = DefaultGroup.GetObjectPermission(AccessingUser,this);
                return RP.CanDelete;

            }
            //To Do: Add code to evaluate group permissions
        }
Example #11
0
        public bool CanEdit(OCL.User AccessingUser)
        {
            if(this.mvarIsPublicAccess)
            {
                return false;
            }
            if(AccessingUser.mvarIsSuperUser)
            {
                return true;
            }
            OCL.Functions F = new Functions();
            OCL.User DU = (OCL.User)F.GetUnassignedObject(OCL.OysterUnassignedObjects.User);
            OCL.Group DG = (OCL.Group)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Group);

            return F.CheckGroupObjectPermission(AccessingUser,DG,Convert.ToInt32(OCL.OysterObjectType.User),
                this.mvarID,OCL.OysterPermissions.CanEdit);
        }