Remove categories that a user does not have permission to view.
public static filterCategoryPermissions ( array $categoryIDs ) : array | ||
$categoryIDs | array | An array of categories to filter. |
Результат | array | Returns an array of category IDs that are okay to view. |