<?php
/**
 * @ Chess League Manager (CLM) Component 
 * @Copyright (C) 2008-2026 CLM Team.  All rights reserved
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link https://chessleaguemanager.org
*/
defined('clm') or die('Restricted access');
// API mit Rechten versehen
// array(0,"<ACCESS>",true/false)
// true => Rechtelevel 1
// false => Rechtelevel 1 oder 2
// ---
// array(1,"<ACCESS1>","<ACCESS2>","<ACCESS3>"<switch_index>,<id_index>
// typische Kontrolle bei der team/tournament API
// ---
// array(2,"<ACCESS>",<id_index>)
// typische Kontrolle bei der tournament API
// ---
// array(3,array("<ACCESS>" => true/false,"<ACCESS>" => true/false))
// Alle müssen in Ordnung sein
// ---
// array(4,array("<ACCESS>" => true/false,"<ACCESS>" => true/false))
// Einer muss in Ordnung sein

$rights["db_season_save"]=array(0,"BE_season_general",true);
$rights["db_season_enable"]=array(0,"BE_season_general",true);
$rights["db_season_delete"]=array(0,"BE_season_general",true);
$rights["db_season_delDWZ"]=array(0,"BE_season_general",true);
$rights["db_season_genDWZ"]=array(0,"BE_season_general",true);
$rights["db_season_array"]=array();
$rights["view_dates_display"]=array();
$rights["view_database"]=array();
$rights["db_clubs"]=array();
$rights["db_dewis_player"]=array(0,"BE_database_general",true);
$rights["db_dewis_player_by_name"]=array();
$rights["db_dewis_club"]=array(0,"BE_database_general",true);
$rights["db_ecfv2_clubs"]=array();
$rights["db_ecfv2_player"]=array(0,"BE_database_general",true);
$rights["db_ecfv2_club"]=array(0,"BE_database_general",true);
$rights["db_dsb_player"]=array(0,"BE_database_general",true);
$rights["db_dsb_club"]=array(0,"BE_database_general",true);
$rights["db_ecf_player"]=array(0,"BE_database_general",true);
$rights["db_ecf_club"]=array(0,"BE_database_general",true);
$rights["db_ecf_org"]=array(0,"BE_database_general",true);
$rights["db_units"]=array();
$rights["view_units_form"]=array();
$rights["view_config"]=array(0,"BE_config_general",true);
$rights["db_config_get"]=array(0,"BE_config_general",true);
$rights["db_config_save"]=array(0,"BE_config_general",true);
$rights["db_config_reset"]=array(0,"BE_config_general",true);
$rights["db_report"]=array();
$rights["db_report_sl"]=array();
$rights["db_report_save"]=array();
$rights["db_report_save_sl"]=array();
$rights["db_report_overview"]=array();
$rights["view_report"]=array();
$rights["view_report_sl"]=array();
$rights["db_schedule"]=array();
$rights["view_schedule"]=array();
$rights["view_schedule_pdf"]=array();
$rights["view_schedule_xls"]=array();
$rights["view_schedule_ics"]=array();
$rights["db_termine"]=array();
$rights["view_termine_ics"]=array();
$rights["db_paarungsliste"]=array();
$rights["view_paarungsliste_xls"]=array();
$rights["view_paarungsliste_ics"]=array();
$rights["db_terminliste"]=array();
$rights["view_terminliste_xls"]=array();
$rights["db_be_menu"]=array();
$rights["view_be_menu"]=array();
$rights["view_app_info"]=array();
$rights["view_logging"]=array(0,"BE_logfile_general",true);
$rights["db_logging"]=array(0,"BE_logfile_general",true);
$rights["view_logging_new"]=array(0,"BE_logfile_general",true);
$rights["db_logging_new"]=array(0,"BE_logfile_general",true);
$rights["db_logging_del"]=array(0,"BE_logfile_delete",true);
$rights["db_logging_del2"]=array(0,"BE_logfile_delete",true);
$rights["db_lineup_attr"]=array();
$rights["db_xml_data"]=array();
$rights["db_xml_round"]=array();
$rights["db_nwz_average"]=array();
$rights["db_tournament_ranking_round"]=array(); // Rangliste aktualisieren für Rundenbericht
$rights["db_mail"]=array();
$rights["db_mail_save"]=array();
$rights["view_mail"]=array();
$rights["view_mail_confirm"]=array(0,"BE_user_general",true);
$rights["db_player_check"]=array(); // Prüfung, ob spieler im Spielbetrieb verankert
$rights["db_user_check"]=array(); // Prüfung, ob Benutzer im Spielbetrieb verankert, z.B. Mannschaftsleiter, Schiedsrichter, usw.
$rights["mail_send"]=array(); // Mailversand
$rights["db_syn_player_block"]=array(); // Synchronisation Sperrkennzeichen
$rights["db_checkin"]=array(); // Checkin auf NULL-Werte
$rights["db_time_control"]=array(); // Aufbereitung Bedenkzeit
$rights["db_turplayersliste"]=array();
$rights["db_time_controlliste"]=array();
$rights["db_clubmemberliste"]=array();
$rights["test_print"]=array();
//************************
// Turniere
//************************
$rights["view_tournament"]=array(0,"BE_tournament_general",true);
$rights["db_tournament"]=array(0,"BE_tournament_general",true);
$rights["view_tournament_group"]=array(4, array("BE_league_general" => true, "BE_teamtournament_general" => true));
$rights["db_tournament_group"]=array(4, array("BE_league_general" => true, "BE_teamtournament_general" => true));

$rights["db_tournament_genDWZ"]=array(1,"BE_tournament_edit_round","BE_league_edit_round","BE_teamtournament_edit_round",1,0); // inoff. DWZ generieren
$rights["db_tournament_delDWZ"]=array(1,"BE_tournament_edit_round","BE_league_edit_round","BE_teamtournament_edit_round",1,0); // inoff. DWZ löschen
$rights["db_tournament_genFIDERating"]=array(1,"BE_tournament_edit_round","BE_league_edit_round","BE_teamtournament_edit_round",1,0); // inoff. DWZ generieren
$rights["db_tournament_delFIDERating"]=array(1,"BE_tournament_edit_round","BE_league_edit_round","BE_teamtournament_edit_round",1,0); // inoff. DWZ löschen
$rights["db_tournament_updateDWZ"]=array(1,"BE_tournament_edit_detail","BE_league_edit_detail","BE_teamtournament_edit_detail",1,0); // DWZ des Turniers aktualisieren
$rights["db_tournament_copy"]=array(5,"BE_tournament_create","BE_league_create","BE_teamtournament_create",1,0); // Kopieren
$rights["db_tournament_genRounds"]=array(1,"BE_tournament_edit_round","BE_league_edit_round","BE_teamtournament_edit_round",1,0); // Runden generieren
$rights["db_tournament_delRounds"]=array(1,"BE_tournament_edit_round","BE_league_edit_round","BE_teamtournament_edit_round",1,0); // Runden Löschen
$rights["db_tournament_del"]=array(1,"BE_tournament_delete","BE_league_delete","BE_teamtournament_delete",1,0); // Löschen
$rights["db_tournament_publish"]=array(1,"BE_tournament_edit_detail","BE_league_edit_detail","BE_teamtournament_edit_detail",2,0); // Veröffentlichen, Sperren
$rights["db_tournament_ranking"]=array(1,"BE_tournament_edit_detail","BE_league_edit_detail","BE_teamtournament_edit_detail",1,0); // Rangliste aktualisieren
$rights["db_tournament_sortByTWZ"]=array(1,"BE_tournament_edit_detail","BE_league_edit_detail","BE_teamtournament_edit_detail",1,0); // Sortierung aktualisieren (nicht bei allen Modis notwendig)
$rights["db_tournament_auto"]=array(1,"BE_tournament_edit_detail","BE_league_edit_detail","BE_teamtournament_edit_detail",1,0); // Automatische Aktualisierung von inoff. DWZ und Ranking
$rights["db_tournament_player_del"]=array(2,"BE_tournament_edit_detail",0); // Entfernen von unbenutzten Spielern
$rights["db_tournament_registration_del"]=array(2,"BE_tournament_edit_detail",0); // Entfernen von unbenutzten Online-Registrierungen
$rights["db_tournament_registration_approve"]=array(); // Bestätigen von Online-Registrierungen

$rights["db_ordering"]=array(); // Ordering ändern
$rights["db_pgn_export"]=array(); // pgn-Datei erstellen
$rights["db_pgn_template"]=array(); // pgn-Template erstellen
$rights["db_swm_import"]=array(); // Swiss-Manager-Datei importieren
$rights["db_trf_import"]=array(); // Turnierdatei im TRF-Format importieren
$rights["db_trf_export"]=array(); // Turnierdatei im TRF-Format exportieren
$rights["db_arena_import"]=array(); // Turnier aus lechess importieren
$rights["db_dewis_user"]=array(); // Online Club Check für User
$rights["db_check_season_user"]=array(); // Online Season Check für Ligen und Turniere
$rights["db_term_import"]=array(); // Calenderdatei im csv-Format importieren
$rights["db_term_import_ics"]=array(); // Calenderdatei im ics-Format importieren (iCal)
$rights["db_draw_ch"]=array(); // Auslosung Schweizer System
?>
