Ignore:
Timestamp:
09/01/15 14:10:37 (6 years ago)
Author:
jkarder
Message:

#2355:

  • changed sandboxing to always use an unrestricted permission set
  • removed IsAllowedPrivileged role and according IsPrivileged code
Location:
trunk/sources/HeuristicLab.Services.Hive/3.3
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Services.Hive/3.3/Converter.cs

    r12878 r12926  
    4444        Command = source.Command.ToDto(),
    4545        JobId = source.JobId,
    46         IsPrivileged = source.IsPrivileged,
    4746        PluginsNeededIds = source.RequiredPlugins.Select(x => x.PluginId).ToList(),
    4847        StateLog = source.StateLogs.Select(x => x.ToDto()).OrderBy(x => x.DateTime).ToList(),
     
    7271      target.Command = source.Command.ToEntity();
    7372      target.JobId = source.JobId;
    74       target.IsPrivileged = source.IsPrivileged;
    7573      var ids = target.RequiredPlugins.Select(x => x.PluginId);
    7674      target.RequiredPlugins.AddRange(source.PluginsNeededIds
  • trunk/sources/HeuristicLab.Services.Hive/3.3/DataTransfer/Task.cs

    r12012 r12926  
    4444    [DataMember]
    4545    public Guid JobId { get; set; }
    46     [DataMember]
    47     public bool IsPrivileged { get; set; }
    4846
    4947    public Task() {
  • trunk/sources/HeuristicLab.Services.Hive/3.3/HiveRoles.cs

    r12012 r12926  
    2525    public const string Slave = "Hive Slave";
    2626    public const string Client = "Hive User";
    27     public const string IsAllowedPrivileged = "Hive IsAllowedPrivileged";
    2827  }
    2928}
  • trunk/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs

    r12878 r12926  
    469469    }
    470470
     471    // BackwardsCompatibility3.3
     472    #region Backwards compatible code, remove with 3.4
    471473    public bool IsAllowedPrivileged() {
    472       RoleVerifier.AuthenticateForAnyRole(HiveRoles.Administrator, HiveRoles.Client);
    473       return RoleVerifier.IsInRole(HiveRoles.IsAllowedPrivileged);
    474     }
     474      return true;
     475    }
     476    #endregion
    475477    #endregion
    476478
  • trunk/sources/HeuristicLab.Services.Hive/3.3/ServiceContracts/IHiveService.cs

    r12878 r12926  
    9797    IEnumerable<JobPermission> GetJobPermissions(Guid jobId);
    9898
     99    // BackwardsCompatibility3.3
     100    #region Backwards compatible code, remove with 3.4
    99101    [OperationContract]
    100102    bool IsAllowedPrivileged(); // current user may execute privileged task
     103    #endregion
    101104    #endregion
    102105
Note: See TracChangeset for help on using the changeset viewer.