- Jun 2, 2008
- 163
- 0
- 0
Hello I have a simple question on how to approach this.
Let's say we have 3 users, user11, user15, and user19.
user11 has 2 graphs he is allowed to look at, ?graph=1, 4
user 15 has ?graph=2, 3
and user19 has ?graph=5, 6.
This is of course gonna have to be dynamic as the user may get more projects in the future.
What would be the best way to make sure they are only allowed to see their graphs?
The username itself has been caught and is in a session variable.
Let's say we have 3 users, user11, user15, and user19.
user11 has 2 graphs he is allowed to look at, ?graph=1, 4
user 15 has ?graph=2, 3
and user19 has ?graph=5, 6.
This is of course gonna have to be dynamic as the user may get more projects in the future.
What would be the best way to make sure they are only allowed to see their graphs?
The username itself has been caught and is in a session variable.