From bc0084465b8af5fe45bf4c1dec63d546defd8d8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tadej=20Ba=C5=A1a?= <tadej.basa@gmail.com>
Date: Wed, 23 Nov 2011 19:26:00 +0100
Subject: [PATCH] entity access hook is "update" not "edit"

---
 modules/callbacks.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/callbacks.inc b/modules/callbacks.inc
index 32b49fd..a915a16 100644
--- a/modules/callbacks.inc
+++ b/modules/callbacks.inc
@@ -622,7 +622,7 @@ function entity_metadata_taxonomy_access($op, $entity = NULL, $account = NULL, $
   if ($entity_type == 'taxonomy_vocabulary') {
     return user_access('administer taxonomy', $account);
   }
-  if (isset($entity) && $op == 'edit' && !isset($account) && taxonomy_term_edit_access($entity)) {
+  if (isset($entity) && $op == 'update' && !isset($account) && taxonomy_term_edit_access($entity)) {
     return TRUE;
   }
   if (user_access('administer taxonomy', $account) || user_access('access content', $account) && $op == 'view') {
-- 
1.7.5.4

