Added permission checking for tags