Somehow allow user register overrides with formdefault
Kuldip Gohil - March 28, 2008 - 08:25
| Project: | Form Defaults |
| Version: | 5.x-2.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Here is the one problem if we want to edit user registration form , then
1)We have need to give access to anonymous user and save the settings
but this is not working
bcoz session value is not set at time,so edit link is not apeared,
so i request to add this features
i am doing work on it i will submit patch for it ASAP.
thanks,
kuldip

#1
Yeah I understand the problem. I'm suprised that session variables don't persist even for anonymous users, but hey. Feel free to run by preliminary approaches.
Dave
#2
i think this can pretty easily be done by putting a button on the form defaults page 'enable this ip to edit forms even when logged out' which saves the ip for half an hour or so in the cache table (that discards it automatically)- usually you'd only need a minute or two but...
so implementation would just need a formdefaults_access function that checks if the current ip has been enabled for changes, else return user_access(change form label)....?