Opened 14 years ago

Last modified 12 years ago

#408 new enhancement

Remove groupOwner from GeoNetwork

Reported by: heikki Owned by: geonetwork-devel@…
Priority: minor Milestone: v2.10.0 RC0
Component: General Version: v2.6.1
Keywords: Cc:

Description

I think we can remove groupOwner completely from GeoNetwork. Since ticket #400 it is no longer used in search, as its function in search can be just as well expressed by querying for all metadata the current user may view or edit (op0 and op2).

Metadata has view and edit privileges for each of the groups that the user who created the metadata belongs to. So it is not clear at all what "groupOwner" is really supposed to mean.

Change History (2)

comment:1 by fxp, 14 years ago

It's used in GetByOwner

// if the user is a reviewer, return all metadata of the user's groups
        else if(userProfile.equals(Geonet.Profile.REVIEWER) || userProfile.equals(Geonet.Profile.USER_ADMIN)) {
            query = "SELECT id FROM Metadata "+
                        "WHERE groupOwner IN (SELECT groupId FROM UserGroups WHERE userId='"+ownerId+
                        "' AND isHarvested='n')" ;
        }

(even if I think that this service should be removed because same query could be made using LuceneSearcher and xml.search service)

comment:2 by ianwallen, 12 years ago

Milestone: v2.7.0v2.9.0
Note: See TracTickets for help on using tickets.