Example #1
0
 public virtual void AddAllowedGroup(int enviromentId, string groupId)
 {
     if (AllowedGroups.Count(x => x.EnviromentId == enviromentId && x.GroupId == groupId) == 0)
     {
         AllowedGroups.Add(new AllowedGroup()
         {
             ApplicationId = this.Id,
             EnviromentId  = enviromentId,
             GroupId       = groupId
         });
     }
 }
Example #2
0
 protected internal virtual void LoadDefaultPermissions()
 {
     AllowedGroups.Add("server.default");
 }