fixes #13515 - fix issue where expecting scope but receiving array
the permission name method expects a scope, but sometimes received an array instead, in that case, the correct way to bypass the issue is to use the class of the first item in the array.
Related issues
Bug #13515: Foreman exception triggered when editing a role filter or adding a new one
fixes #13515 - fix issue where expecting scope but receiving array
the permission name method expects a scope, but sometimes received an
array instead, in that case, the correct way to bypass the issue is to
use the class of the first item in the array.