Help with permissions | Peter's Sports League Standings | Forum
Back to the sports standings script page
10:02 am
Just wondering if any one can give me a heads up on something regarding permissions. I want to be able to give a user permissions to control a conference or even a season. Setting the permission is fine.
But the user is able to see all Seasons/conferences/divisions. is it possible to only show the season/conference that the user has permissions too?
I presume it would be a If statement somewhere. Any help is appreciated thanks.
:???:
10:09 am
Jutt to add. To make it clearer.
Say I have 4 seasons, each season with two conferences. A season manager and then two conference managers for each season.
Which would be 12 users. Each with their own permission for their conference to add teams or scores. Whatever they need to do.
When they login to their user account. I want only the season which they have a permission too. To be displayed. So Season A manager cannot see Season B's information.
I still want them to view each others standings though.
I hope that makes it clearer.
The current permission system is less granular around seasons and more granular around divisions.
The way it's currently set up:
- Season management capabilities is set to be on or off depending on whether you're an administrator.
- Conference management capabilities can be set to on or off. There are no specific limitations possible.
- You can limit division management to a particular conference, so you could toggle the display of a conference or even a season based on whether the current user can manage at least one division in that conference or season, or at least one division limited to at least one conference within that season. You will have to extend the code regarding permissions checking a bit, because the storage of a division permission does not directly store information about its parent conference or parent season. You'll have to peruse through all the various permission check examples within the admin_files folder to get started.
5:28 am
Is there away to add a code for players stats page?
I run a big league and the standing are great,but players in my league want to be able to see what they did thru out the season.
right now I run a hockey league.So stats like goals ,assist,Points ,PIM
Plus goalie stats
Wins,loses,GAA,Saves. save%
Are becoming more important of the last few months.
Thanks for your time