public static function permissions(): array
    {
        $permissions = parent::permissions();

        //  Fetch the blogs, each blog should have its own permission
        $ci =& get_instance();
        $ci->load->model('blog/blog_model');
        $blogs = $ci->blog_model->getAll();

        $out = array();

        if (!empty($blogs)) {
            foreach ($blogs as $blog) {
                $permissions[$blog->id . ':update']  = $blog->label . ': Can update settings';
            }
        }

        return $permissions;
    }
public static function permissions(): array
    {
        $permissions = parent::permissions();

        //  Fetch the blogs, each blog should have its own permission
        $ci =& get_instance();
        $ci->load->model('blog/blog_model');
        $blogs = $ci->blog_model->getAll();

        $out = array();

        if (!empty($blogs)) {
            foreach ($blogs as $blog) {
                $permissions[$blog->id . ':update']  = $blog->label . ': Can update settings';
            }
        }

        return $permissions;
    }
public static function permissions ( ) : array { $ permissions = parent :: permissions ( ) ; //  Fetch the blogs, each blog should have its own permission $ ci = & get_instance ( ) ; $ ci -> load -> model ( 'blog/blog_model' ) ; $ blogs = $ ci -> blog_model -> getAll ( ) ; $ out = array ( ) ; if ( ! empty ( $ blogs ) ) { foreach ( $ blogs as $ blog ) { $ permissions [ $ blog -> id . ':update' ] = $ blog -> label . ': Can update settings' ; } } return $ permissions ; }
Returns an array of permissions which can be configured for the user
@return array
Returns an array of permissions which can be configured for the user