Global function current_user() returning null while logged in
20 views
Skip to first unread message
Thom Mc
unread,
Feb 17, 2015, 9:50:34 PM2/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omek...@googlegroups.com
Hi,
I'm working on a plugin which extends the API. It uses a custom controller which extends Omeka_Controller_AbstractActionController and implements getAction().
This is working ok and provides a usable API method, except that when I call current_user() or similar code to check a user is logged in, it returns null instead of the expected user object.
Can anybody suggest why this might be?
Thanks, Thom
John Flatness
unread,
Feb 18, 2015, 10:41:00 AM2/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to omek...@googlegroups.com
Thom,
Since this is in the API, is your user "logged in" normally, or with a
key in the query string? The API doesn't respect cookie-based sessions,
only the given key (if any).