Fixed issue where editing button is aways disabled regardless of user permissions