Skip to content

Commit

Permalink
Show members of a group when the group folder is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
torinfo committed Feb 27, 2023
1 parent b4c5ed5 commit fcdfac1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions website_code/php/groups/get_group_info.php
@@ -0,0 +1,40 @@
<?php
/**
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// Calls the function from the display library

require_once("../../../config.php");

if(empty($_SESSION['toolkits_logon_id'])) {
die("Please login");
}

require_once("../properties/properties_library.php");

$info = new stdClass();
$info->group_name = $_POST['group_name'];
$info->group_id = $_POST['group_id'];
$info->properties = group_info($info->group_id);

//$sql = "SELECT role FROM " .
// " {$xerte_toolkits_site->database_table_prefix}folderrights, {$xerte_toolkits_site->database_table_prefix}logindetails WHERE " .
// " {$xerte_toolkits_site->database_table_prefix}logindetails.login_id = {$xerte_toolkits_site->database_table_prefix}folderrights.login_id and folder_id= ? and login_id = ?";
//
//$row = db_query_one($sql, array($_POST['folder_id'], $_SESSION['toolkits_logon_id']));

echo json_encode($info);

0 comments on commit fcdfac1

Please sign in to comment.