Learn about Sitekly builder

Privileges and account roles

You can create new roles, manage existing roles and assign them to selected designers, users and administrators. In this way, you can impose restrictions on the functionality of selected groups. Create a group of administrators who, for example, will not be able to see revenue statistics or a user who will only be able to edit the site, the functionality of the site editor itself can also be restricted.

You can also extend basic privileges using packages, so users can have more privileges if they have specific package assigned to their website.

Change user's role

To change the role of a given user, go to edit the given user and select privileges name from the drop-down list.

Editing role configuration

Modifying roles is possible by editing the sitekly/app/Config/Privileges.php configuration file.

To edit the privileges of a role you need to add or remove the given functionality, for example removing 'domain_manage', will disable the ability to manage a domain.

To add a new role just copy a similar role, rename it and make appropriate changes by removing or adding permissions.

Default privileges config sample


        //user full privileges
        'user'=> [
            'site_preview',
            'site_edit',
            'site_delete',
            'site_add',
            'site_info'=>['space','status','package','expire'],
            'site_export', 
            'section_export', 
            'package_change',
            'subscription_manage',
            'domain_manage',
            'mailbox_view',
            'mailbox_add',
            'mailbox_change',
            'mailbox_delete',
            'profile_edit',
            'widgets_allowed'=> ['block','column','slider','col','container','menu','title','paragraph','divider','button','cform','img','icon','iconlist','iconbox','imagebox','video','gallery','carousel','map','accordion','social-buttons','custom-code'],
            'tools_allowed'=>['sections','templates','media','pages','settings','design','globals'],
        ],

         //admin full privileges
        'admin'=> [
            'site_preview',
            'site_edit',
            'site_delete',
            'site_add',
            'site_info'=>['space','status','package','expire'],
            'site_export', 
            'section_export', 
            'package_change',
            'subscription_manage',
            'domain_manage',
            'mailbox_view',
            'mailbox_add',
            'mailbox_change',
            'mailbox_delete',
            'profile_edit',
            'widgets_allowed'=> ['block','column','slider','col','container','menu','title','paragraph','divider','button','cform','img','icon','iconlist','iconbox','imagebox','video','gallery','carousel','map','accordion','social-buttons','custom-code','dynamic-widget'],
            'tools_allowed'=>['sections','templates','media','pages','settings','design','globals'],
            'admin_info' => ['system','stat_new-users','stat_new-sites','stat_income-statistics'],
            'admin_templates'=>['view','status','delete','translate','edit','add_new','builder_templates'],
            'admin_pricing_manage',
            'admin_users'=>['view','manage','login','manage_admins'],
            'admin_sites_manage',
        ],

Grant extra privileges to specific package

Additional privileges will be merged with user role privileges.


        'package_2'=> [ // package_package id 
            'site_export', 
            'widgets_allowed'=> ['block'],
        ],

Need more details?

Let us know if something is unclear or if you need more information

Builder features

For Designers & Agencies

© 2021-2023 Sitekly.com