ソースを参照

Type in permission

spficklin 12 年 前
コミット
fdac2a25b5
1 ファイル変更4 行追加4 行削除
  1. 4 4
      tripal_project/tripal_project.module

+ 4 - 4
tripal_project/tripal_project.module

@@ -99,22 +99,22 @@ function tripal_project_perm() {
 function chado_project_access($op, $node, $account) {
 
   if ($op == 'create') {
-    if (!user_access('create chado_project content', $account)) {
+    if (!user_access('create chado_projects content', $account)) {
       return FALSE;
     }
   }
   if ($op == 'update') {
-    if (!user_access('edit chado_project content', $account)) {
+    if (!user_access('edit chado_projects content', $account)) {
       return FALSE;
     }
   }
   if ($op == 'delete') {
-    if (!user_access('delete chado_project content', $account)) {
+    if (!user_access('delete chado_projects content', $account)) {
       return FALSE;
     }
   }
   if ($op == 'view') {
-    if (!user_access('access chado_project content', $account)) {
+    if (!user_access('access chado_projects content', $account)) {
       return FALSE;
     }
   }