Changeset 5041


Ignore:
Timestamp:
Aug 11, 2009, 9:54:49 AM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #108: Logging the change history of an item

  • Only administrators get access to the change history by default.
  • It is possible to give this permission to other roles.
Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/PermissionUtil.java

    r4889 r5041  
    217217            Item.FILE, Item.DIRECTORY, Item.PROJECT, Item.MESSAGE,
    218218            Item.PLUGINTYPE, Item.PLUGINDEFINITION, Item.PLUGINCONFIGURATION, Item.JOB,
    219             Item.JOBAGENT
     219            Item.JOBAGENT, Item.CHANGEHISTORY
    220220          })
    221221        );
  • trunk/src/core/net/sf/basedb/core/Install.java

    r5038 r5041  
    394394      createRoleKey(Item.SETTING, "Settings", "Gives access to settings", administrators_all);
    395395      createRoleKey(Item.MESSAGE, "Messages", "Gives access to messages", users_create);
    396  
     396      createRoleKey(Item.CHANGEHISTORY, "Change history", "Gives access to change history of items", administrators_read);
     397     
    397398      // Permissions for job agents are only added for new installations and
    398399      // updates below schema version 13
Note: See TracChangeset for help on using the changeset viewer.