| Database Design Find articles on variouse database design topics |
|
||||||
![]() |
|
|
LinkBack (50) | Thread Tools | Search this Thread |
Rating:
|
|
|||
|
Quote:
The code is actually redundant and will not affect the results. You can safely remove the code snippet: Code:
else if ($new_weight == $weight && (int) $is_allowed === 1 && (int) $conn->is_allowed === 0){
// We always give more weight to denials.
$is_allowed = $conn->is_allowed; // i.e. set to FALSE or 0
$weight = $new_weight;
}
Thanks for the heads up! Ben |
|
|||
|
I am attempting to see if your system can be used for my current project. I am in the process of creating a Drawing (AutoCAD) repository viwer which will have around 5,000 drawings (one per db row), and I need to be able to grant access to users based on their group(s) and permissions to view these drawings. Some users will have access to all, and some will not. Can I use your system to efficiently get a list of ALL drawings (rows) which a given user of a given group would have access to?
Best Regards, Farshad Vossoughi |
|
|||
|
Quote:
|
|
|||
|
Thank you ben - Will I have to make 5,000 individual calls to see if a user can view a each row? Also, do you know if your system has been translated/migrated to any other programming language (e.g. Delphi)?
|
|
|||
|
Quote:
With one call you can find out all the drawings a particular user is allowed to access. OR, if you want, you can also (with one call) find out all the users which are allowed to access a particular drawing. Quote:
The administration side of things can be a bit tricky, but certainly not difficult |
|
|||
|
Do I have your permission to port your work to Delphi?
I am not a web programmer but I think I can follow what has been done. Is this forum the only way to contact you? Farshad |
|
|||
|
Quote:
Yes, you have permission to port this system to Delphi. The license is actually very "unrestrictive". If you intend to distribute your work, a mention of this website would be nice :-) If you have a look at the PHP file headers you can contact me by email. Cheers, Ben |
|
|||
|
Hello,
I am curious, how are you going to enter 5000 items in the RBAC tables? Best Regards, Dimitar Quote:
|
|
|||
|
Hi Ben,
First I must tell you one hell of example this yours rbac_admin, indeed impressive. After spending last couple of days trying to understand most of it and hacking along I rewrote some parts of error class and added some improvements here and there. Now it's possible to dump vars (array, object, resource) in form of collapsible, expandable html tables with complete call flow until dump call. Same functionality goes for error reporting too. Screenshot: snapshot1.jpg Is it appropriate to post those changes on this forum? Cheers, Sinisa Vujic |
|
|||
|
Hi Sinisa,
Thanks for taking a look at the code. Quote:
Cheers, Ben |
![]() |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|