#4237 type() instead of permissionType()
Merge pull request #4238 from dotCMS/issue-4237-broken-fileasset-upgrade

#4237 type() instead of permissionType()