Skip to content
Snippets Groups Projects
class.report.php 550 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    class ReportModel {
    
        const PERM_AGENTS = 'stats.agents';
    
        static protected $perms = array(
                self::PERM_AGENTS => array(
    
    Peter Rotich's avatar
    Peter Rotich committed
                    'title' =>
    
                    /* @trans */ 'Stats',
    
    Peter Rotich's avatar
    Peter Rotich committed
                    'desc'  =>
    
                    /* @trans */ 'Ability to view stats of other agents in allowed departments',
                    'primary' => true,
                ));
    
    
        static function getPermissions() {
            return self::$perms;
        }
    }
    
    RolePermission::register(/* @trans */ 'Miscellaneous', ReportModel::getPermissions());
    ?>