PromucFlow_constructor/app/client/cypress/support/Pages
Ankita Kinger c3f7d6c0cf
fix: Adding a permission check for creating new datasource on generate page (#22085)
## Description

Adding a permission check for creating new datasource on generate page.
When a custom role is assigned in GAC, where the user doesn't have
access to create a new datasource, in spite of that the create new
datasource option is showed in the dropdown on generate page with data.
This is fixed with this PR.

Fixes [#22027](https://github.com/appsmithorg/appsmith/issues/22027)

## Type of change

- Bug fix (non-breaking change which fixes an issue)


## How Has This Been Tested?
> Tested it manually and it works fine.

- Manual

## Checklist:
### Dev activity
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


### QA activity:
- [ ] Test plan has been approved by relevant developers
- [ ] Test plan has been peer reviewed by QA
- [ ] Cypress test cases have been added and approved by either SDET or
manual QA
- [ ] Organized project review call with relevant stakeholders after
Round 1/2 of QA
- [ ] Added Test Plan Approved label after reveiwing all Cypress test
2023-04-05 17:22:43 +05:30
..
AppSettings chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
AdminSettings.ts test: Cypress - Added AdminSettings Helper (#21741) 2023-03-27 15:06:03 +05:30
AggregateHelper.ts fix: Adding a permission check for creating new datasource on generate page (#22085) 2023-04-05 17:22:43 +05:30
ApiPage.ts chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
DataSources.ts test: Cypress - Automated tests for Firestore datasource (#22057) 2023-04-04 21:26:57 +05:30
DebuggerHelper.ts fix: Error log on a widget property not clearing out when the widget property is deleted (#20486) 2023-02-21 09:57:56 +05:30
DeployModeHelper.ts chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
EntityExplorer.ts test: Cypress - Automated tests for Basic Arango/Curl Import datasources (#21808) 2023-03-29 01:37:07 +05:30
FakerHelper.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
GitSync.ts chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
HomePage.ts fix: Adding a permission check for creating new datasource on generate page (#22085) 2023-04-05 17:22:43 +05:30
InviteModal.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
JSEditor.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
LibraryInstaller.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
PeekOverlay.ts feat: peek overlay (#20053) 2023-02-17 21:33:34 +05:30
PropertyPane.ts test: Cypress - Updating to TED Random api (#21615) 2023-03-22 01:22:39 +05:30
Table.ts chore: improve husky and lint-staged checks (#21679) 2023-03-23 17:02:18 +05:30
Templates.ts fix: fork template button not visible on page refresh (#20388) 2023-02-10 11:41:35 +05:30