PromucFlow_constructor/app/client/src/pages
Ankita Kinger 5c075e89de
fix: Adding permission check for the view tab on datasource editor (#37308)
## Description

Adding permission check for the view tab on datasource editor

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

## Automation

/ok-to-test tags="@tag.Sanity, @tag.Datasource"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/11766974110>
> Commit: bd2ecfe1a834869a99962116e2d45512e6dfc54a
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11766974110&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Sanity, @tag.Datasource`
> Spec:
> <hr>Sun, 10 Nov 2024 18:51:27 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced feature flag checks for tab rendering based on user
permissions.
- Conditional display of the "View Data" tab, ensuring only authorized
users can access it.

- **Bug Fixes**
- Improved control flow for tab activation based on datasource validity
and user permissions.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-11-11 14:28:18 +05:30
..
AdminSettings chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
Applications feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
AppViewer chore: remove console errors on dev (#36639) 2024-10-15 00:23:51 +05:30
common chore: Updating the copy in the action settings pane (#37260) 2024-11-07 00:20:52 +05:30
Editor fix: Adding permission check for the view tab on datasource editor (#37308) 2024-11-11 14:28:18 +05:30
hooks chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
setup chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
Templates chore: adds automation for request templates component (#37140) 2024-11-01 15:18:41 +05:30
tests chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UserAuth chore: span push and sentry logs (#36682) 2024-10-07 11:21:55 +05:30
UserProfile chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
users chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
workspace chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
utils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00