* @last_review 0.3.1
*/
function fpp_get_required_permissions($object_type) {
if (!is_array($object_type)) $object_type = array($object_type);
$permissions = array(‘share_item’);
if (array_search(‘page’, $object_type) !== false) {
$permissions[] = ‘manage_pages’;
}
if (array_search(‘group’, $object_type) !== false) {
$permissions[] = ‘user_groups’;
my codes like this
what we must do