Changeset 5786


Ignore:
Timestamp:
Oct 6, 2011, 1:00:35 PM (11 years ago)
Author:
Nicklas Nordborg
Message:

References #1597: Subtypes of items

Only check for WRITE permission if a new item is actually created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/ItemSubtype.java

    r5723 r5786  
    578578  public ItemSubtypeFileType getAssociatedDataFileType(DataFileType fileType, boolean create)
    579579  {
    580     checkPermission(Permission.WRITE);
    581580    if (fileType == null) throw new InvalidUseOfNullException("fileType");
    582581   
     
    589588    else if (create)
    590589    {
     590      checkPermission(Permission.WRITE);
    591591      if (fileType.getItemType() != getMainItemType())
    592592      {
Note: See TracChangeset for help on using the changeset viewer.