I'm trying to set the access level for brief description to default but my ajax post keeps putting it on private. Here's my code:
elgg.action('action/profile/edit', {
data: {
guid: elgg.get_page_owner_guid(),
briefdescription: $('textarea[name=briefdescription]').val(),
access_id: 'ACCESS_DEFAULT'
},
success: function(data) {
// do something
}
});
Any suggestions?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cim@manacim
Cim - 0 likes
You must log in to post replies.Ahh never mind, I figured it out from looking at the Elgg profile edit action php file. Turns out the access levels are put into an array.