소스 검색

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;
     }
   }