-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Bugfix/disable authentication #93
Bugfix/disable authentication #93
Conversation
Forgot to add the property and constructor to assign disable_authentication.
Thanks for the PR @rickardbergatangrycreative! I think the capabilities were added after settling on returning an empty array for the authentication servers to disable authentication, so I hadn't considered this. Adding a new entry in the container seems like it could cause issues if the How about dropping the |
@bradyvercher I agree, and I actually tried to come up with a solution with the I've implemented your suggestion now. |
Thanks for making that change and welcome to WordPress development! Feel free to reach out if you have any questions about anything. There are a few additional minor things I'd like to see before merging this, so I'll leave a couple comments on the code. |
…hanges to comform with the WordPress coding standards
…_cap in the Authentication provder
Disabling authentication by adding an empty array to the filter "satispress_authentication_servers" currently doesn't work.
I've fixed that by adding the satispress_view_package- and satispress_download_package-capabilities to all users, if the filter "satispress_authentication_servers" returns an empty array.