Changeset 1966


Ignore:
Timestamp:
Jul 14, 2011, 5:03:06 PM (12 years ago)
Author:
robert@…
Message:

Bugfix that solves a bug when searching as administrator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/groovy/dbnp/query/Search.groovy

    r1940 r1966  
    180180                        // Anonymous readers are only given access when published and public
    181181                        whereClause +=  " ( " + studyName + ".publicstudy = true AND " + studyName + ".published = true )"
    182                 } else if( !this.user.hasAdminRights() ) {
     182                } else if( this.user.hasAdminRights() ) {
    183183                        // Administrators are allowed to read every study
    184 
     184                        whereClause += " (1 = 1)"
     185                } else {
    185186                        // Owners and writers are allowed to read this study
    186187                        // Readers are allowed to read this study when it is published
Note: See TracChangeset for help on using the changeset viewer.