Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-3591

Repository: users with resource manager rights should have access to repo entries

    XMLWordPrintable

    Details

      Description

      A user with resource manager rights (in our case a REST user) should be able to query repository entries. This patch allows that:

      diff --git a/src/main/java/org/olat/repository/RepositoryManager.java b/src/main/java/org/olat/repository/RepositoryManager.java
      --- a/src/main/java/org/olat/repository/RepositoryManager.java
      +++ b/src/main/java/org/olat/repository/RepositoryManager.java
      @@ -1357,7 +1357,7 @@
       		boolean setIdentity = false;
       
       		//access rules
      -		if(roles.isOLATAdmin()) {
      +		if(roles.isOLATAdmin() || roles.isInstitutionalResourceManager()) {
       			query.append(" where v.access!=0 ");
       		} else if(institut) {
       			query.append(" where (v.access >=");
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: