예제 #1
0
 public function edit()
 {
     $this->set('form', \Loader::helper('form'));
     $this->set('apikey', \Config::get('auth.community.appid', ''));
     $this->set('apisecret', \Config::get('auth.community.secret', ''));
     $list = new \GroupList();
     $list->includeAllGroups();
     $this->set('groups', $list->getResults());
 }
 public function edit()
 {
     $this->set('form', \Loader::helper('form'));
     $this->set('apikey', \Config::get('auth.worldskills.appid', ''));
     $this->set('apisecret', \Config::get('auth.worldskills.secret', ''));
     $this->set('rolesApplicationCode', \Config::get('auth.worldskills.roles_application_code', ''));
     $list = new \GroupList();
     $list->includeAllGroups();
     $this->set('groups', $list->getResults());
 }
예제 #3
0
 public function edit()
 {
     $this->set('form', \Loader::helper('form'));
     $this->set('apikey', \Config::get('auth.google.appid', ''));
     $this->set('apisecret', \Config::get('auth.google.secret', ''));
     $list = new \GroupList();
     $list->includeAllGroups();
     $this->set('groups', $list->getResults());
     $this->set('whitelist', \Config::get('auth.google.email_filters.whitelist', array()));
     $blacklist = array_map(function ($entry) {
         return json_encode($entry);
     }, \Config::get('auth.google.email_filters.blacklist', array()));
     $this->set('blacklist', $blacklist);
 }
예제 #4
0
 /**
  * Displays the form for editing the authentication method
  * 
  * Saving the form calls saveAuthenticationType()
  */
 public function edit()
 {
     $this->set('form', \Loader::helper('form'));
     $this->set('domain', \Config::get('auth.auth0.domain', ''));
     $this->set('client_id', \Config::get('auth.auth0.client_id', ''));
     $this->set('client_secret', \Config::get('auth.auth0.client_secret', ''));
     $this->set('registration_enabled', \Config::get('auth.auth0.registration_enabled', ''));
     $this->set('registration_group', \Config::get('auth.auth0.registration_group', ''));
     $list = new \GroupList();
     $list->includeAllGroups();
     $this->set('groups', $list->getResults());
     // $this->set('whitelist', \Config::get('auth.auth0.email_filters.whitelist', array()));
     // $blacklist = array_map(function($entry) {
     //     return json_encode($entry);
     // }, \Config::get('auth.auth0.email_filters.blacklist', array()));
     // $this->set('blacklist', $blacklist);
 }
예제 #5
0
$tp = new TaskPermission();
$users = array();
if (is_array($_REQUEST['uID'])) {
    foreach ($_REQUEST['uID'] as $uID) {
        $ui = UserInfo::getByID($uID);
        $users[] = $ui;
    }
}
foreach ($users as $ui) {
    $up = new Permissions($ui);
    if (!$up->canViewUser()) {
        die(t("Access Denied."));
    }
}
$gl = new GroupList();
$g1 = $gl->getResults();
if ($_POST['task'] == 'group_remove') {
    // build the group array
    $groupIDs = $_REQUEST['groupIDs'];
    $groups = array();
    if (is_array($groupIDs) && count($groupIDs)) {
        foreach ($groupIDs as $gID) {
            $groups[] = Group::getByID($gID);
        }
    }
    foreach ($users as $ui) {
        if ($ui instanceof UserInfo) {
            $u = $ui->getUserObject();
            foreach ($groups as $g) {
                $gp = new Permissions($g);
                if ($gp->canAssignGroup()) {
<?php

defined('C5_EXECUTE') or die("Access Denied.");
?>

<?php 
$included = $permissionAccess->getAccessListItems(PermissionKey::ACCESS_TYPE_INCLUDE);
$excluded = $permissionAccess->getAccessListItems(PermissionKey::ACCESS_TYPE_EXCLUDE);
$gl = new GroupList();
$gl->filter('gID', REGISTERED_GROUP_ID, '>');
$gl->sortBy('gID', 'asc');
$gIDs = $gl->getResults();
$gArray = array();
foreach ($gIDs as $gID) {
    $groups[] = Group::getByID($gID['gID']);
}
$form = Loader::helper('form');
?>

<?php 
if (count($included) > 0 || count($excluded) > 0) {
    ?>

<?php 
    if (count($included) > 0) {
        ?>

<h3><?php 
        echo t('Who can assign what?');
        ?>
</h3>