Add comments on exposed vars and functions

This commit is contained in:
Benedikt Kulmann
2020-08-25 21:29:45 +02:00
parent 2701f06fa9
commit f53ff23451
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ func NewService(cfg *config.Config, logger log.Logger) Service {
return service
}
// RegisterDefaultRoles composes default roles and saves them. Skipped if the roles already exist.
func (g Service) RegisterDefaultRoles() {
// FIXME: we're writing default roles per service start (i.e. twice at the moment, for http and grpc server). has to happen only once.
for _, role := range generateBundlesDefaultRoles() {

View File

@@ -3,6 +3,7 @@ package util
import "github.com/owncloud/ocis-settings/pkg/proto/v0"
const (
// ResourceIDAll declares on a resource that it matches any id
ResourceIDAll = "all"
)