Created
September 27, 2012 05:02
-
-
Save iainurquhart/3792249 to your computer and use it in GitHub Desktop.
#eecms API privelages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this used to work: | |
function login_temporary_user() | |
{ | |
if( $this->EE->session->userdata['member_id'] == 0) | |
{ | |
$this->EE->session->create_new_session(1, TRUE); | |
$this->EE->session->userdata['group_id'] = 1; | |
} | |
} | |
// now you need this | |
function login_temporary_user() | |
{ | |
if( $this->EE->session->userdata['member_id'] == 0) | |
{ | |
$this->EE->session->create_new_session(1, TRUE); | |
$this->EE->session->userdata['group_id'] = 1; | |
$this->EE->session->userdata['can_edit_other_entries'] = 'y'; | |
$this->EE->session->userdata['can_assign_post_authors'] = 'y'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the heads up, Iain! :-)