The access callback is not loading the correct object.
Also default user gets loaded.
| Comment | File | Size | Author |
|---|---|---|---|
| model-access.patch | 1.24 KB | domidc |
The access callback is not loading the correct object.
Also default user gets loaded.
| Comment | File | Size | Author |
|---|---|---|---|
| model-access.patch | 1.24 KB | domidc |
Comments
Comment #1
ronald_istos commented1. user_access loads the user object for you so we don't need to do this again
2. not sure why you think the wrong object is loaded...
Comment #2
domidc commentedI mean that the access argument expects the full object instead of just the type. Otherwise later in following function $type_name is not correct.
Comment #3
Daniel_KM commentedHi,
I confirm the second part of the patch.
Sincerely,
Daniel Berthereau
Infodoc & Knowledge management
Comment #4
anybodyConfirming RTBC!
@Maintainer: Could you add this to the next release?