Table of Contents
Referee assignments - Use cases
Superior. https://prodev.profixio.com/app/referee-league-matches Who can enter this page? Only logged in users which have record in grunndata_bruker_organisasjon (AND brukeradmin = 1 OR dommeradmin =…
Superior
https://prodev.profixio.com/app/referee-league-matches
Who can enter this page? Only logged in users which have record in
- grunndata_bruker_organisasjon (AND brukeradmin = 1 OR dommeradmin = 1)
- grunndata_bruker_krets (AND brukeradmin = 1 OR dommeradmin = 1)
- tg_group_has_bruker_i_turnering WHERE tg_group = 18 or 40 or 41 or 50 or 51
- bruker_org_tg_group
Use cases SBBF.SE.BB
Some credentials in SBBF.

Case 1 - logged in as olle.lunden@basket.se
Tabell: grunndata_bruker_organisasjon

Dommeradmin brukes ikke mer!
When select user, the complete email-address must be entered
- It shall not be possible to search free-text! In this case: martin.herkel@gmail.com. If email not exists in table "bruker"
- It is not required to choose a district. But if olle.lunden whish to assign referee credential for a certain district, it must be chosen.
If none district is selected, it shall not be possible to save any role + "District" (only "Federation")

olle.lunden has credential to assign whomever person to be whatever role he wants:
grunndata_bruker_organisasjon.brukeradmin = 1

- Now: olle.lunden shall give a person credentials as referee admin for a certain district. As explained before, this district must be chosen (see bubble 2).

Case 2 - logged in as sveabdf@gmail.com
Tabell: grunndata_bruker_krets
Because brukeradmin = 1, this will override dommeradmin. sveabdf can assign referee for all leagues inside this district.

- Only district 747 is shown (see fk_krets). No other districts can be chosen.
- All Federation disabled.
- Can see all credentials, but shall not be able to change cred for other than own district.

NOTE: If sveabdf@gmail.com selects olle.lunden@basket.se as user, all credentials for olle.lunden shall be shown.
If olle.lunden has creds for district 747, these cred can be deleted. No other cred can be changed!
Use cases SHF.SE.HB
Case 1 - logged in as YYY
Tabell: grunndata_bruker_krets
YYY cannot access Credentials or Competition Settings.
YYY has credential Referee Admin (District) - HF Öst (id 802)


- Only district 802 is shown (see fk_krets) in the Region filter in Match filter. No other districts can be chosen in the Match filter.
- Can choose all competitions in Seriespel in the Match filter that has district 802 as Contest administrator (grunndata_krets eller grunndata_organisasjon) except for IF the competition is a top level league. IF the league is top level, the access has to be given to that particular competition.
Case 2 - logged in as ZZZ
Tabell: grunndata_bruker_krets
ZZZ cannot access Credentials or Competition Settings.
ZZZ has credential Referee Admin (District) - HF Öst (id 802)
ZZZ has credential for Seriespel Herrar - Handbollsligan herr (District) - HF Mitt (fk_krets id). Contest administrator for this league is SHF)

- District 802 is shown (see fk_krets) in the Region filter in Matchfilter. No other districts can be chosen in the Matchfilter. However, as ZZZ has been given access to a league that is owned by another, SHF (fk krets ID) shall also be shown in Regions. To summarize, the person shall see HF Öst and SHF in Regions.
- Can choose all competitions in Seriespel in the Matchfilter that has district 802 as Contest administrator (vilken tabell?). It can also choose Handbollsligan herr as this user has access to that particular competition.
- If this person selects Handbollsligan herr as one of its choices, note that the level chosen for this contest is District. That means that this user can only see matches from this competition that has venue district (vilken tabell?) HF Mitt (fk_krets id) as this was the chosen district for this competition.
How did we do?
Nominating referees
Permissions - Use cases