add permission check to role management

This commit is contained in:
David Christofas
2020-11-18 16:30:51 +01:00
parent 49ac58815d
commit 2f69265a66
5 changed files with 106 additions and 31 deletions

View File

@@ -1,6 +1,8 @@
package middleware
import (
"net/http"
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
rpc "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
provider "github.com/cs3org/go-cs3apis/cs3/storage/provider/v1beta1"
@@ -11,7 +13,6 @@ import (
accounts "github.com/owncloud/ocis/accounts/pkg/proto/v0"
"github.com/owncloud/ocis/ocis-pkg/log"
"google.golang.org/grpc/metadata"
"net/http"
)
// CreateHome provides a middleware which sends a CreateHome request to the reva gateway