I have now seen in the codes, and there is not set any admin rights or made any function in the code for this.
There must be revritten some codes, and added aom functions.
There must be added:
Chech if moderator or admin.
If admin, there must be set a user value to the link.
When "edit avatar" is loaded, the ID from link needs to be set in code, so system know what avatar that is been loaded.
Then there must be set admin chech for saving the avatar after edit.
The most easy way to fix this, is to create a "Admin / moderator" button on the meny so the avatar can be removed. (not edit).