spficklin há 13 anos atrás
pai
commit
460a6eec41
1 ficheiros alterados com 5 adições e 5 exclusões
  1. 5 5
      tripal_library/tripal_library.module

+ 5 - 5
tripal_library/tripal_library.module

@@ -841,22 +841,22 @@ function tripal_library_library_access($op, $node, $account){
 
    if ($op == 'update') {
       if (!user_access('edit any chado_library content', $account) &&
-         (!user_access('edit own chado_library content', $account)){
+          !user_access('edit own chado_library content', $account)){
           return FALSE;
       }
-      if(user_access('edit own chado_library content', $account)
-        ($account->uid != $node->uid)){
+      if(user_access('edit own chado_library content', $account) &&
+         $account->uid != $node->uid){
          return FALSE;
       }
    }
 
    if ($op == 'delete') {
       if (!user_access('delete any chado_library content', $account) &&
-         (!user_access('delete own chado_library content', $account)){
+         !user_access('delete own chado_library content', $account)){
          return FALSE;
       } 
       if (user_access('delete own chado_library content', $account) &&
-         ($account->uid != $node->uid)) {
+          $account->uid != $node->uid) {
          return FALSE;
       }
    }