Class CanSeeVersionsFeature

  • All Implemented Interfaces:
    AuthorizationFeature

    @Component
    @AuthorizationFeatureDocumentation(name="canSeeVersions",
                                       description="It can be used to verify if the user can view the versions of an Item")
    public class CanSeeVersionsFeature
    extends Object
    implements AuthorizationFeature
    The view versions feature. It can be used to verify if the user can view the versions of an Item. In case DSpace is configured to only show versions to administrators, authorization is granted if the current user is the object's admin. Otherwise, authorization is granted if the current user can view the object.