Browse Source

Type in permission

spficklin 12 years ago
parent
commit
fdac2a25b5
1 changed files with 4 additions and 4 deletions
  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;
     }
   }