Bloquear pantalla de registro de aplicación de REST API
This commit is contained in:
Dheeyi William
2016-06-14 13:07:06 -04:00
parent 43961b7bbf
commit 5781d8ed51
3 changed files with 30 additions and 20 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');