Skip to content

regtoy/owc_share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Share Context Override ownCloud App

This repository contains the source code for the Share Context Override application for ownCloud 10. The app ensures that users automatically benefit from the permissions granted to them through direct shares when they navigate into subfolders from parent folders with lower privileges.

Key Features

  • Hooks into the ownCloud file access pipeline using the public event dispatcher.
  • Detects when a user enters a folder that has been shared directly with elevated permissions.
  • Overrides the inherited permissions in real time, ensuring the user gains the capabilities defined by the direct share.
  • Adds response headers consumed by a lightweight JavaScript helper so that the Files app refreshes button states instantly.

Installation (development)

  1. Clone this repository into the apps/ directory of your ownCloud installation.
  2. Enable the app via the ownCloud Marketplace UI or occ app:enable share_context_override.
  3. Clear your browser cache to ensure the bundled JavaScript asset is loaded.

Development Notes

  • Backend logic resides under lib/ and is wired through the application container during bootstrap.
  • PermissionOverrideService encapsulates the permission comparison and request-scoped tracking required for frontend updates.
  • A middleware injects response headers signalling the client-side helper to refresh the Files UI when overrides occur.
  • The docs/share_context_override_design.md file outlines the high-level architecture and testing strategy for the project.

Testing

Automated tests can be added under tests/ and executed with the ownCloud app testing tooling. Functional verification should include the navigation scenarios described in the design document.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors