| @@ -39,9 +39,9 @@ | ||
| 39 | 39 | { |
| 40 | 40 | label: __("Generate Report", "yatra"), |
| 41 | 41 | icon: FileText, |
| 42 | 42 | onClick: onGenerateReport, |
| 43 | - capability: "yatra_view_reports", | |
| 43 | + capability: "yatra_view_operational_reports", | |
| 44 | 44 | color: "green", |
| 45 | 45 | }, |
| 46 | 46 | { |
| 47 | 47 | label: __("View Calendar", "yatra"), |
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | { |
| 54 | 54 | label: __("View Analytics", "yatra"), |
| 55 | 55 | icon: BarChart3, |
| 56 | 56 | onClick: onViewAnalytics, |
| 57 | - capability: "yatra_view_reports", | |
| 57 | + capability: "yatra_view_operational_reports", | |
| 58 | 58 | color: "orange", |
| 59 | 59 | }, |
| 60 | 60 | { |
| 61 | 61 | label: __("Settings", "yatra"), |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | { |
| 61 | 61 | label: __("Settings", "yatra"), |
| 62 | 62 | icon: Settings, |
| 63 | 63 | onClick: onViewSettings, |
| 64 | - capability: "manage_yatra", | |
| 64 | + capability: "yatra_access_admin", | |
| 65 | 65 | color: "gray", |
| 66 | 66 | }, |
| 67 | 67 | ]; |
| 68 | 68 | |