Arrow

Help with permissions | Peter's Sports League Standings | Forum

Back to the sports standings script page
 
Current User: Guest
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Help with permissions

Reply to Post Add a New Topic
UserPost

10:02 am
April 17, 2010


ph

Guest

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.

Confused

10:09 am
April 17, 2010


ph

Guest

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.

10:16 pm
May 13, 2010


Peter

Admin

posts 732

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
June 7, 2010


Cromags21

Guest

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

4:57 pm
June 7, 2010


Peter

Admin

posts 732

Player stats is certainly possible, and has been requested several times, but no code has been written for it (or planned in the short-term). Feel free to extend the code yourself.

Reply to Post

Reply to Topic:
Help with permissions

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
7 + 6