optional method for controlling public access#332
Closed
CodeBlastr wants to merge 1 commit into
Closed
Conversation
Please see the usage notes in the comments added to see how this is a new *optional* method allows users to control public or guest access from the permissions.php config file. The benefit is that it allows all permissions to be controlled from a single place - including public permissions, as opposed to having some permissions in the individual controllers (eg. $this->Auth->allow('someAction')) and some permissions in the config file.
Member
|
I see... yes, this could be a good improvement for people who wants to define all rules in the same place. Then we could match the controller in the component initialize to configure the controller's Auth->allow() with the extracted actions. NOTE: Please send feature contributions to develop branch instead of master (I'll close this one and look forward to see your new PR) Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please see the usage notes in the comments to see how this is a new optional method allows users to control public or guest access from the permissions.php config file. The benefit is that it allows all permissions to be controlled from a single place - including public permissions, as opposed to having some permissions in the individual controllers (eg. $this->Auth->allow('someAction')) and some permissions in the config file.