Thanks for the info but this is not convenient for the users when they are creating a new resource ( they didn't see the icon to upload) and must be back to edit resource and upload icon.
No, after changing the code everything works fine...
I ment, that the if condition looks for "canEditIcon" ... so I think that this permission is set for Admins... and I can´t find this choice in the permission settings for user-groups or resources.
Thats why you need to delete this if-condition (at the moment) to make the icon upload visible for other member groups in resource edit.