[GeoNetwork-devel] [GeoNetwork-commit] SF.net SVN: geonetwork:[4697] sandbox/geocat.ch/trunk/src/org/fao/geonet/ services/ownership

Hello Jose, maybe this patch should be applied to trunk also ?

What do you think ?

Hasta luego.

Francois

2009/7/27 <josegar74@anonymised.com>:

Revision: 4697
http://geonetwork.svn.sourceforge.net/geonetwork/?rev=4697&view=rev
Author: josegar74
Date: 2009-07-27 14:51:26 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
Ticket 15478: Added reviewer. Last commit included only Editor (that has same privilegies as Reviewer)

Modified Paths:
--------------
sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Editors.java
sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Groups.java

Modified: sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Editors.java

--- sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Editors.java 2009-07-27 14:19:05 UTC (rev 4696)
+++ sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Editors.java 2009-07-27 14:51:26 UTC (rev 4697)
@@ -89,7 +89,7 @@
int id = Integer.parseInt(us.getUserId());

           String query = &quot;SELECT DISTINCT Users\.id, name, surname, profile FROM Users, Metadata &quot;\+

- "WHERE owner=Users.id AND (profile='Editor' OR (profile='UserAdmin'))";
+ "WHERE owner=Users.id AND (profile='Editor' OR profile='UserAdmin' OR profile='Reviewer')";

           List   list  = dbms\.select\(query\)\.getChildren\(\);

Modified: sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Groups.java

--- sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Groups.java 2009-07-27 14:19:05 UTC (rev 4696)
+++ sandbox/geocat.ch/trunk/src/org/fao/geonet/services/ownership/Groups.java 2009-07-27 14:51:26 UTC (rev 4697)
@@ -108,7 +108,7 @@
response.addContent(record);

                           String query = &quot;SELECT id, surname, name FROM Users, UserGroups &quot;\+

- "WHERE id=userId AND (profile='Editor' OR profile='UserAdmin') AND groupId=?";
+ "WHERE id=userId AND (profile='Editor' OR profile='UserAdmin' OR profile='Reviewer') AND groupId=?";

                           Element editors = dbms\.select\(query, new Integer\(groupId\)\);
                           dbms\.commit\(\);

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-commit mailing list
GeoNetwork-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-commit