Altenrate ip/key/file/session based permissions possible?
Caleb G - August 28, 2008 - 19:33
| Project: | Drupal For Firebug |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
In trying to use the module on a site that has 11 different roles it occurs to me that having an alternate way of assigning permissions for the drupalforfirebug module can be very useful - right now my only choice is to enable permissions for every role and thereby have the information loaded and available to every user or else go without when I'm testing as one of those roles...

#1
This is an interesting request. Drupal rolls with the general role based permissioning which can present a problem for what you are looking for. A few options that might be possible here:
1.) ip based permissioning (only allow certain ips to get the data)
2.) $_SESSION based token to keep authentication alive
other ideas?
#2
I don't know about session based permissioning (maybe I'm not being thoughtful enough here, but initially that sounds a little kludgy), but the ip based one seems like a valid use case - but - what I'm guessing might be more widely-useful is an admin screen which shows checkboxes for all roles that exist on a site, and the ones which are checked would then have permissions to view/load drupalforfirebug.
I could take a stab at coding something up if that sounds interesting to you...
#3
I am agreeable to patches that provide IP based access. We could do a settings page to setup the IPs and then check the IP along with user_access to see if information will be sent.