Hi, i need to display a list of collections that a user has been explicitly given the VIEW policy: ability to view and consequently, to list the collection (for example, on a community page). If a user does not have this permission, a collection should be excluded from all lists (so in effect, a user would not be aware of its existence)
I have this working in Dspace 5.1 where getCollections() in Community.java has comfortable access to the authorize manager and the context. The list here is looped one more time, non-authorized collections are excluded. But now in Dspace 6.3 in Community.java there is neither: no authorize service and no context. I tried already redeclaring getCollection(Context context) but a) even if it compiles, Tomcat does not start and b) very dirty as all calls to getCollection() need to be adjusted Another idea is to forbid direct access to community.getCollection() by declaring it protected and redefine it in the CommunityService service but here again: very dirty, all code around the whole Dspace will need to be changed to call the service instead So my questions here would be: - What would be a proper solution to exclude some collections from the list Community.getCollections() return? - Or, is there any other way to achieve the goal? Thanks! --667i -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To post to this group, send email to dspace-tech@googlegroups.com. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.