示例#1
0
文件: User.cs 项目: CarverLab/Oyster
 /// <summary>
 /// Get all Owned Oyster Recording Sessions that are visible by the Accessing User
 /// </summary>
 /// <param name="AccessingUser"></param>
 /// <returns></returns>
 public RecordingSessions AllOwnedRecordingSessions(OCL.User AccessingUser)
 {
     Functions F = new Functions();
     RecordingSessions RS = new RecordingSessions();
     if((AccessingUser.mvarIsSuperUser)||(AccessingUser.mvarID == this.mvarID))
     {
         RS = F.GetAllOwnedRecordingSessions(this);
     }
     else
     {
         RS = F.GetAllVisibleRecordingSessions(AccessingUser,this);
     }
     return RS;
 }