The hook *hook_permission* does not provides all the permissions needed for the resources, so they are not available on the *Permissions* page. For example, the *view client* which is needed to view a client using the *hosting_client* endpoint.
$resources['hosting_client'] = array(
....
'retrieve' => array(
'callback' => 'hosting_get_client',
'help' => t('Fetch the client node.'),
'access arguments' => array('view client'),
'args' => array(
array(
'name' => 'nid',
'type' => 'string',
'optional' => FALSE,
'description' => t('Nid or unique name of the client'),
'source' => array('path' => '0')
),
),
),
....
);
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-2940099-2-3.txt | 530 bytes | tucho |
| #3 | hosting_services-missing_permissions-2940099-3.patch | 561 bytes | tucho |
Comments
Comment #2
tuchoI uploaded a patch that adds the 4 missing permissions that I have detected.
I tested it with Drupal 7.56 and hosting_services 7.x-3.x.
Comment #3
tuchoSorry!
I included two permissions created by the *node* module.
Just the *create client* and *view client* are missing.
I uploaded a new patch and an interdiff.
Comment #5
colanThanks!