- Timestamp:
- 08/14/08 12:01:54 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/rapla/plugin/abstractcalendar/RaplaBuilder.java
r1112 r1330 49 49 import org.rapla.entities.domain.Appointment; 50 50 import org.rapla.entities.domain.AppointmentBlockArray; 51 import org.rapla.entities.domain.Permission;52 51 import org.rapla.entities.domain.Reservation; 53 52 import org.rapla.entities.dynamictype.Attribute; … … 484 483 User user; 485 484 List blocks; 486 Category canReadOthersGroup;485 boolean canReadOthers; 487 486 488 487 public BuildContext(RaplaBuilder builder, List blocks) … … 499 498 this.logger = builder.getLogger(); 500 499 this.user = builder.editingUser; 501 try { 502 this.canReadOthersGroup = builder.getClientFacade().getUserGroupsCategory().getCategory( Permission.GROUP_CAN_READ_EVENTS_FROM_OTHERS); 503 } catch (RaplaException ex) 504 { 505 // we assume that there is no other group 506 } 500 this.canReadOthers = builder.getClientFacade().canReadReservationsFromOthers(user); 507 501 } 508 502 … … 643 637 return false; 644 638 } 645 if ( buildContext.canReadOthers Group == null || user.belongsTo( buildContext.canReadOthersGroup))639 if ( buildContext.canReadOthers ) 646 640 { 647 641 return false;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/rapla.jpg)