Skip to content
Succès

Changes

Summary

  1. The default implementation of the Contribution#canBeAccessedBy(User) (details)
Commit b9810ac629f8b94efee15a05aed23f6b46a18054 by Miguel Moquillon
The default implementation of the Contribution#canBeAccessedBy(User)
uses the AuthorizationRequestCache to avoid a redondent computation of
the authorization of the user to access the contribution along the same
thread. The cache key was computed from the local identifier of the
contribution which can lead hidden bugs like for example the access to
another contribution of different type with the same identifier value
not being computed. Now the cache key is computed from the global
identifier of the contribution.
The file was modifiedcore-api/src/main/java/org/silverpeas/core/contribution/model/Contribution.java (diff)