Add role-based access control to various settings pages: implement canAccess method in AboutPageSettings, ContactPageSettings, HomePageSettings, ManageCtaSettings, ManagePortfolio, ManageSite, ManageSiteSocialSettings, ManageSolutions, ManageSuccess, and update User model to include canManageSettings method for enhanced security and user experience.
This commit is contained in:
@@ -8,35 +8,50 @@ class AboutSettings extends Settings
|
||||
{
|
||||
// Our Story Section
|
||||
public string $our_story_title;
|
||||
|
||||
public string $our_story_subtitle;
|
||||
|
||||
public string $our_story_paragraph_one;
|
||||
|
||||
public string $our_story_paragraph_two;
|
||||
|
||||
public string $our_story_paragraph_three;
|
||||
|
||||
public string $our_story_button_text;
|
||||
|
||||
public string $our_story_button_url;
|
||||
|
||||
public string $our_story_video_poster;
|
||||
|
||||
public string $our_story_video_source;
|
||||
|
||||
// Our Journey Section
|
||||
public string $our_journey_title;
|
||||
|
||||
public string $our_journey_subtitle;
|
||||
|
||||
public array $our_journey_milestones; // [{year: 2010, title: "Start Company", description: "...", image: "..."}]
|
||||
|
||||
// Company Structure Section
|
||||
public string $company_structure_title;
|
||||
|
||||
public string $company_structure_subtitle;
|
||||
|
||||
public string $company_structure_director_name;
|
||||
|
||||
public string $company_structure_advisor_name;
|
||||
|
||||
public array $company_structure_departments; // [{name: "HSE", person: "Michael Brown"}]
|
||||
|
||||
// Our Facilities Section
|
||||
public string $our_facilities_title;
|
||||
public string $our_facilities_subtitle;
|
||||
public array $our_facilities_locations; // [{name: "Headquarters", location: "...", description: "...", image: "...", tags: ["R&D Labs"]}]
|
||||
|
||||
public string $our_facilities_subtitle;
|
||||
|
||||
public array $our_facilities_locations; // [{name: "Headquarters", location: "...", description: "...", image: "...", tags: ["R&D Labs"]}]
|
||||
|
||||
public static function group(): string
|
||||
{
|
||||
return 'cms_aboutpage';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user