Permissions are not showing on D7, I fixed it by changing the code below:

function cpanel_ops_perm() {
  return array('administer cpanel operations', 'access cpanel operations', 'create new mysql database', 'create new ftp account', 'create new email account');
}

to

function cpanel_ops_permission() {
	
	  $t = get_t();
  return array(
    'administer cpanel operations' => array(
    	'title' => $t('administer cpanel operations'),
    	'description' => $t(''),
    	),
    'access cpanel operations' => array(
    	'title' => $t('access cpanel operations'),
    	'description' => $t(''),
    	),
    
    'create new mysql database' => array(
    	'title' => $t('create new mysql database'),
    	'description' => $t(''),
    	),
    
    'create new ftp account' => array(
    	'title' => $t('create new ftp account'),
    	'description' => $t(''),
    	),
    
    'create new email account' => array(
    	'title' => t('create new email account'),
    	'description' => $t(''),
    	)    
    );
}

Comments

compujohnny’s picture

Status: Needs work » Fixed

Fixed, thanks for reporting

truls1502’s picture

Status: Fixed » Needs review

You forgot to add $t = get_t(); in version of 7.x-1.3, and it need to be updated.

compujohnny’s picture

Status: Needs review » Fixed

Fixed, sorry I forgot to add it

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.