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

Feature/tdr 22/declarative funcacl #2510

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from

Conversation

jbout
Copy link
Contributor

@jbout jbout commented May 13, 2020

Provide a new default implementation for the func ACL that does not require a persistence and that is generating the access rights based on the manifest declarations.

requires oat-sa/generis#791

@hutnikau
Copy link
Contributor

Please fix phpdocs of classes and methods and declare strict types in new classes.

@@ -1343,6 +1343,6 @@ public function update($initialVersion)
$this->setVersion('42.0.4');
}

$this->skip('42.0.4', '42.8.0');
$this->skip('42.0.4', '42.9.0');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't you want to set CacheOnly implementation for existing instances?

Copy link
Contributor Author

@jbout jbout Jun 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to keep existing deployments unchanged and keep using funcAcl.

@hutnikau
Copy link
Contributor

\oat\funcAcl\models\ExtensionAccessService needs to be updated in order to check if FuncAccessControl service implementation authorable or not. In case if CacheOnly implementation configured (or any other non-authorable) then managing access right must be disabled even in developer's mode.

@jbout
Copy link
Contributor Author

jbout commented Jun 4, 2020

While not strictly required (because when installing funcAcl we replace the default implementation with the author-able one) I like the idea of splitting the interfaces. I will adapt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants