Location: PHPKode > projects > Standings module for sports > pndocs/Security Schema.txt
This is the security schema in place with v1.2 after applying the current security patch.
Basically there are two different schema:

 - Standings::Tournament	::cid		to give access to Tournament's updates/management
 - Standings::Team		(team)::tid	to give access to Team's updates/management

On top of that main schema (to be assigned to the site admin) is: 

 - Standings::			::

For an example on how to configure team representatives access see the attached file.

	SV


SECURITY SCHEMA:
===============

- Main Standings Menu:	Add Tournament	(admin_new)		Standings::			::		ACCESS_ADMIN
			Edit Config (admin_modifyconfig)	Standings::			::		ACCESS_ADMIN
			View Tournaments (admin_view)		Standings::Tournament		::		ACCESS_READ
			     [Tournament list]			Standings::Tournament		title::cid	ACCESS_READ
				|
			      (opt)
				\_ Edit				Standings::Tournament		title::cid	ACCESS_ADMIN
				\_ Teams			Standings::Tournament		title::cid	ACCESS_READ
				\_ Schedule			Standings::Tournament		title::cid	ACCESS_READ
				\_ Delete			Standings::Tournament		title::cid	ACCESS_ADMIN

- View Tournaments:	Edit (admin_modify)			Standings::Tournament		title::cid	ACCESS_ADMIN
			Teams (admin_viewteams)			Standings::Tournament		::cid		ACCESS_READ
			   \_(menu) Add Team			Standings::Tournament		::cid		ACCESS_ADD
			     Add Team (admin_newteam)		Standings::Tournament		::cid		ACCESS_ADD
			     [Teams list]			Standings::Team			team::tid	ACCESS_READ
				|
			      (opt)
				\_ Edit				Standings::Team			team::tid	ACCESS_EDIT
				\_ Players			Standings::Team			team::tid	ACCESS_EDIT
				\_ Delete			Standings::Tournament		::cid		ACCESS_ADMIN
			     Modify Team (admin_modifyteam)	Standings::Team			team::tid	ACCESS_EDIT
			     Modify Team-Name(admin_modifyteam)	Standings::Tournament		::cid		ACCESS_ADMIN
			     Delete Team (admin_deleteteam)	Standings::Tournament		::cid		ACCESS_ADMIN

			Players (admin_viewplayers)		Standings::Team			::tid		ACCESS_READ
			   \_(menu) Add Player			Standings::Team			::tid		ACCESS_ADD
			     Add Player (admin_newplayer)	Standings::Team			::tid		ACCESS_ADD
			     [Players list]			Standings::Team			::tid		ACCESS_READ
				|
			      (opt)
				\_ Edit				Standings::Team			::tid		ACCESS_EDIT
				\_ Delete			Standings::Team			::tid		ACCESS_DELETE
			     Modify Player (admin_modifyplayer)	Standings::Team			team::tid	ACCESS_EDIT
			     Modify Player-TID (    "    )	Standings::Tournament		::cid		ACCESS_ADMIN
			     Delete Player (admin_deleteplayer)	Standings::Team			::tid		ACCESS_DELETE


			Schedule (admin_viewcal)		Standings::Tournament		::cid		ACCESS_READ
			   \_(menu) Add Schedule		Standings::Tournament		::cid		ACCESS_ADMIN
			   \_(menu) Schedule deletion		Standings::Tournament		::cid		ACCESS_ADMIN
			     Add Schedule (admin_newcal)	Standings::Tournament		::cid		ACCESS_ADMIN
			     Schedule deletion (.._deleteselcal)Standings::Tournament		::cid		ACCESS_ADMIN
			     [Schedule list]			Standings::Tournament		::cid		ACCESS_READ
				|
			      (opt)
				\_ [Scout Team]			Standings::Team			team::tid	ACCESS_EDIT
				\_ Edit				Standings::Team			team::tid	ACCESS_EDIT
			     [Update Ranking]			Standings::Tournament		::cid		ACCESS_ADMIN

			Delete (admin_delete)			Standings::Tournament		title::cid	ACCESS_DELETE

- Schedule:		Edit (admin_modifycal)			Standings::Team			::tid		ACCESS_EDIT
			Edit (admin_modifycal)-rid/Teams	Standings::Tournament		::cid		ACCESS_ADMIN
			[Team Scout] (admin_viewscouts)		Standings::Team			::tid		ACCESS_READ
			   \_(menu) Add Scout			Standings::Team			::tid		ACCESS_ADD
			     Add Scout (admin_newscout)		Standings::Team			::tid		ACCESS_ADD
			     [Scouts list]			Standings::Team			::tid		ACCESS_READ
				|
			      (opt)
				\_ Edit				Standings::Team			::tid		ACCESS_EDIT
				\_ Delete			Standings::Team			::tid		ACCESS_DELETE
			Edit (admin_modifyscout)		Standings::Team			::tid		ACCESS_EDIT			
			Delete (admin_deletescout)		Standings::Team			::tid		ACCESS_DELETE			
Return current item: Standings module for sports