This topic is locked
[SOLVED]

 Multi tiered access control.

4/2/2012 12:48:05 AM
PHPRunner General questions
C
CK. author

This is quite common in a real world environment.
H - HQ, B - Branch GM, M - Managers, S - Sales

----------------------------------------------

[hierarchical]
H HQ

+B Branch01

+-M Manager01

+--S Sales01

+--S Sales02

+--S Sales03

+-M Manager02

+--S Sales04

+--S Sales05

+--S Sales06

+B Branch02

+-M Manager03

+--S Sales07

+--S Sales08

+-M Manager04

+--S Sales09

+--S Sales10

+-M Manager05

+--S Sales11

+--S Sales12

+B Branch03

+-M Manager06

+--S Sales13

+--S Sales14

+--S Sales15

+-M Manager07

+--S Sales16

+--S Sales17

+--S Sales18

+--S Sales19

+--S Sales20
For this example:-

  • There are only 3 Branches (Branch01, Branch02, Branch03) for this company.
  • In each Branch, there are 2 or more Managers (Manager01..07).
  • Each Manager have to take care of 2 to 5 Salesman (Sales01..20)
    Branch01 GM can view sales performance for Branch01 and not others. (Inclusive Manager 01..02, Salesman 01..06)

    Manager01 can view sales performance for Branch01 and not others. (Inclusive Salesman 01..03)

    Manager02 can view sales performance for Branch01 and not others. (Inclusive Salesman 04..06)

    Sales01 can only view his self performance.
    Branch02 GM can view sales performance for Branch02 and not others. (Inclusive Manager 03..05, Salesman 07..12)

    Branch03 GM can view sales performance for Branch03 and not others. (Inclusive Manager 06..07, Salesman 13..20)
    Of course, the staff in HQ or Branches are able to access those information for respective branch(es) as well.
    Can phprunner security manage to handle this format without doing much coding?
    Regards,

    php.Newbie

A
Athlon 4/2/2012

Yes It will / can do this with ease. I use it myself on a smaller tree.
Clue: add as many session variables in the user password table as possible at start and you can then filter and control by privliges table easily. Use dynamic
Mike.