|
|
I've corrected the title & description on this ticket. The real issue here is that Subscribing to a collection likely should only require READ access rather than ADD access. (Several of the initial comments above jumped to incorrect conclusions because the title / description initially used the phrase "Anonymous Users" instead of "READ access users")
|
|
Change By:
|
Tim Donohue
|
Summary:
|
Dspace subscriptions unavailable for Anonymous READ access users
|
|
Dspace subscriptions aren't available for Anonymous READ access users. They only can subscribe to one collection for receiving alerts if they have permission to submit new items, wich which has no sense. The correct permission is READ permission, not ADD.
It can be fixed modifying the following methods at the following clasess:
@ org.dspace.eperson.Subscribe
public static Collection[] getAvailableSubscriptions(Context context, EPerson eperson){
...
//collections = Collection.findAuthorized(context, null, Constants.ADD); collections = Collection.findAuthorized(context, null, Constants.READ);
...
}
@ org.dspace.app.webui.servlet;SubscribeServlet private void showSubscriptions(Context context, HttpServletRequest request, HttpServletResponse response, boolean updated) throws ServletException, IOException, SQLException { // collections the currently logged in user can subscribe to //Collection[] avail = Subscribe.getAvailableSubscriptions(context); Collection[] avail = Subscribe.getAvailableSubscriptions(context, context.getCurrentUser());
...
}
|
|
|
|