Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocis driver: enforce permissions #1213

Merged
merged 11 commits into from
Oct 6, 2020
Prev Previous commit
Next Next commit
think through permissions checks
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic committed Oct 3, 2020
commit 28ed27a51595aa4275928d08a81358a77bb4f2e2
1 change: 1 addition & 0 deletions pkg/storage/fs/owncloud/owncloud.go
Original file line number Diff line number Diff line change
@@ -787,6 +787,7 @@ func extractACEsFromAttrs(ctx context.Context, ip string, attrs []string) (entri
// We need the storage relative path so we can calculate the permissions
// for the node based on all acls in the tree up to the root
func (fs *ocfs) readPermissions(ctx context.Context, ip string) (p *provider.ResourcePermissions, err error) {

u, ok := user.ContextGetUser(ctx)
if !ok {
appctx.GetLogger(ctx).Debug().Str("ipath", ip).Msg("no user in context, returning default permissions")