Changeset 1966
- Timestamp:
- Jul 14, 2011, 5:03:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/groovy/dbnp/query/Search.groovy
r1940 r1966 180 180 // Anonymous readers are only given access when published and public 181 181 whereClause += " ( " + studyName + ".publicstudy = true AND " + studyName + ".published = true )" 182 } else if( !this.user.hasAdminRights() ) {182 } else if( this.user.hasAdminRights() ) { 183 183 // Administrators are allowed to read every study 184 184 whereClause += " (1 = 1)" 185 } else { 185 186 // Owners and writers are allowed to read this study 186 187 // Readers are allowed to read this study when it is published
Note: See TracChangeset
for help on using the changeset viewer.