-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add Access Control Provider - 2.3.1 #1270
Merged
Conversation
This file contains 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
* fix useForm action on nested pages * update docs * fix react location duplicate routes
* create rbac context and provider Co-authored-by: mhrrmk <mkocadere@gmail.com> * add rbac provider Co-authored-by: mhrrmk <mkocadere@gmail.com> * create useCan hook * dublicate of base example * fix rbac provider * Fix useCan hook Co-authored-by: mhrrmk <mkocadere@gmail.com> * add casbin example Co-authored-by: mhrrmk <mkocadere@gmail.com> * add rbac hooks in crud components Co-authored-by: mhrrmk <mkocadere@gmail.com> * fix buttons of crud component rbac * update permissions * add useCanWtihoutCache hook * create canaccess component Co-authored-by: mhrrmk <mkocadere@gmail.com> * change name rbac->accessControl * add access control to crud pages in react router route provider Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com> * change access control react example project name Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com> * add access control to crud pages in react router and nextjs router providers * add accessControl next example * delete faulty dir * add acccess control casbin next example correctly Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com> * update canAccess usage * add canAccess component to menu items * create header for role change Co-authored-by: mhrrmk <mkocadere@gmail.com> * add user resource Co-authored-by: mhrrmk <mkocadere@gmail.com> * add categories resource Co-authored-by: mhrrmk <mkocadere@gmail.com> * fix canAccess fallback value * update useCan query key Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * create accessControlProvider test wrapper and mock * add queryOptions params to useCan * update Show component test due to ACProvider Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * update List component test due to ACProvider * update Edit component test due to ACProvider * update Sider component test * add access control in delete button Co-authored-by: mhrrmk <mkocadere@gmail.com> * fix re-render issue layout on react-router * add access control to list, create, delete buttons. remove acces control from crud edit component. Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com> * remove access control from crud show component * add access control to clone, edit and show buttons Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com> * add docs * Revert "update Show component test due to ACProvider" This reverts commit 026951d. * Revert "update List component test due to ACProvider" This reverts commit 6505a8f. * add access control provider test * Revert "update Edit component test due to ACProvider" This reverts commit 975bd21. * add default access contorl points docs * fix sccess contorl paramters for buttons * update button docs for ignoreAccessControlProvider prop * add accessControlPrpvider prop doc for Refine component. * add access control provider test for edit component * add access control provider test for sider component * convert one object to all useCan params * final touch on access control provider doc * fix broken links * skipped tests * add access control tests to button components * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Apply suggestions from code review Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * fix can return type * update useCan return type * fix can retutrn type. add sandbox. * Add button notAccessTitle's to translation files * add useCan doc * fix usecan type doc * add canaccess doc * add useCan tsdoc * fix accessControl tests * return title only when button disabled * fix button disabled title customization * add custom title tests for buttons * add useCan unit tests * add canAccess component tests * add canAccess fallback props test * Cerbos RBAC provider (#1262) * init cerbos * cerbos demo * cerbos demo * cerbos demo * add field base access control to example * fix cerbos example * update field policy * format document * init access control guide * add doc section * fis prettier * add simple access screenshot * Optimised images with calibre/image-actions * Update documentation/docs/guides-and-concepts/access-control.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/guides-and-concepts/access-control.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/guides-and-concepts/access-control.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/guides-and-concepts/access-control.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/guides-and-concepts/access-control.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/guides-and-concepts/access-control.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * add different roles section * finish guide doc * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * add cerbos codesandbox * Update documentation/docs/api-references/providers/accessControl-provider.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * update casbin-next example * last touches on access control docs Co-authored-by: mhrrmk <mkocadere@gmail.com> * sync doc versions Co-authored-by: mhrrmk <mkocadere@gmail.com> * update doc of version 2.xx sidebar file * Update documentation/versioned_docs/version-2.xx.xx/getting-started/overview.md Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> * Update refine-config.md * remove casbin-next example * wrap CanAccess to Dashboard routes * add Access control provider support for react-location * fix typo * update references link description Co-authored-by: mhrrmk <mkocadere@gmail.com> Co-authored-by: Ömer Faruk APLAK <omer@pankod.com> Co-authored-by: Alex Olivier <alex@alexolivier.me> Co-authored-by: Pankod Community Bot <53254888+pankod-bot@users.noreply.github.com>
Hello from PR HelperIs your PR ready for review and processing? Mark the PR ready by including If you still have work to do, even after marking this ready. Put the PR on hold by including |
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.
Add Access Control Provider - Doc