Merged in dheeyi/processmaker/HOR-1007 (pull request #4409)

R-1007
This commit is contained in:
Julio Cesar Laura Avendaño
2016-06-16 16:48:18 -04:00
3 changed files with 32 additions and 22 deletions

View File

@@ -21,7 +21,12 @@
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*/
global $RBAC;
if ($RBAC->userCanAccess('PM_REST_API_APPLICATIONS') != 1) {
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
die();
}
$G_PUBLISH = new Publisher();
$G_PUBLISH->AddContent('view', 'oauth2/applicationsLoad');
G::RenderPage('publish');