Fixing bug #23901
This commit is contained in:
parent
7c9021f0be
commit
6bf4ff2f92
|
@ -1182,13 +1182,16 @@ public class CKANPackage extends CKAN implements Moderated {
|
|||
this.apiKey = CKANUtility.getSysAdminAPI();
|
||||
|
||||
if(!ckanUser.isCatalogueModerator()) {
|
||||
q = String.format("%s AND %s:%s", q, AUTHOR_EMAIL_KEY, ckanUser.getEMail());
|
||||
parameters.put(GCatConstants.Q_KEY, q);
|
||||
|
||||
switch (ckanUser.getRole()) {
|
||||
case ADMIN:
|
||||
case MANAGER:
|
||||
break;
|
||||
|
||||
case EDITOR:
|
||||
if(cmItemStatus!=null) {
|
||||
q = String.format("%s AND %s:%s", q, AUTHOR_EMAIL_KEY, ckanUser.getEMail());
|
||||
parameters.put(GCatConstants.Q_KEY, q);
|
||||
}
|
||||
break;
|
||||
|
||||
case MEMBER:
|
||||
|
|
Loading…
Reference in New Issue