This methods filters out any permissions for the owner and converts the
user name if necessary.
public static permissionToJson ( Horde_Perms_Permission $perm, boolean $systemShare = false ) : array | ||
$perm | Horde_Perms_Permission | A permission object. |
$systemShare | boolean | Is this from a system share? |
return | array | A hash suitable for json. |