Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2067


Ignore:
Timestamp:
06/19/09 13:15:10 (15 years ago)
Author:
mbecirov
Message:

#586: Changed some permissions.

Location:
trunk/sources
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/Authorization/HivePermissionManager.cs

    r2065 r2067  
    7979
    8080    private bool CheckPermissionHelper(Guid sessionId, Guid actionId, Guid entityId) {
     81      if (entityId == Guid.Empty) return true;
    8182      IList<ClientGroup> groups = clientManager.GetAllGroupsOfResource(entityId).Obj;
    8283      foreach (ClientGroup group in groups)
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/ServerConsoleFacade.cs

    r2065 r2067  
    6666
    6767    public ResponseList<ClientGroup> GetAllClientGroups() {
    68       secMan.Authorize("AccessClientGroup", sessionID, Guid.Empty);
     68      //secMan.Authorize("AccessClientGroup", sessionID, Guid.Empty);
    6969      return clientManager.GetAllClientGroups();
    7070    }
  • trunk/sources/HeuristicLab.Hive.Server/3.2/MainForm.Designer.cs

    r2065 r2067  
    9595          // btnClose
    9696          //
     97          this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    9798          this.btnClose.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
    9899          this.btnClose.Location = new System.Drawing.Point(279, 1);
     
    117118          this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
    118119          this.Name = "MainForm";
     120          this.ShowInTaskbar = false;
    119121          this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
    120122          this.Text = "Hive Server";
  • trunk/sources/HeuristicLab.Security.Core/3.2/SecurityCoreTest.cs

    r2065 r2067  
    269269        Debug.WriteLine("Grant ALL permissions to admin...");
    270270        foreach (Permission item in HivePermissions.GetPermissions()) {
    271           manager.GrantPermission(user.Id, item.Id, Guid.Empty);
     271          try {
     272            manager.GrantPermission(user.Id, item.Id, Guid.Empty);
     273          }
     274          catch (Exception ex) {
     275            Debug.WriteLine(ex.Message);
     276          }
    272277        }
    273278        Debug.WriteLine("Adding user...");
     
    292297        //admins allowed to do everything ;)
    293298        foreach (Permission item in HivePermissions.GetPermissions()) {
    294           manager.GrantPermission(grp.Id, item.Id, Guid.Empty);
     299          try {
     300            manager.GrantPermission(grp.Id, item.Id, Guid.Empty);
     301          }
     302          catch (Exception ex) {
     303            Debug.WriteLine(ex.Message);
     304          }
    295305        }
    296306      }
Note: See TracChangeset for help on using the changeset viewer.