Skip to content

Commit

Permalink
Adição de role para cadastramento de editais
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardomoro committed Aug 13, 2018
1 parent 76704ab commit 4f508f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/permissions.php
Expand Up @@ -39,6 +39,19 @@
'assign_formaingresso' => true
));
}

// Editais Role
if (!get_role( 'cadastrador_editais' )) {
add_role('cadastrador_editais', __('Cadastrador de Editais'), array(
'read' => true,
'upload_files' => true,
'manage_files' => true,

'create_editais' => true,
'edit_editais' => true,
'manage_editais' => false
));
}
});

add_action('switch_theme', function() {
Expand Down

0 comments on commit 4f508f7

Please sign in to comment.