Permalink
Browse files

edit mode and view mode stages instead of mode variable

  • Loading branch information...
1 parent 89c08be commit 2b664302839cabcd0a7bc209ff4075d59949f768 @emad-elsaid committed Sep 4, 2009
Showing with 3 additions and 2 deletions.
  1. +3 −2 system/application/helpers/perm_helper.php
@@ -23,13 +23,14 @@ function perm_array()
'boolVars' => array(
'root'=> intval($CI->vunsy->user->is_root()).'=1',
'logged'=>intval($CI->vunsy->user->logged()).'=1',
- 'guest'=>intval($CI->vunsy->user->is_guest()).'=1'
+ 'guest'=>intval($CI->vunsy->user->is_guest()).'=1',
+ 'view'=>intval($CI->vunsy->view_mode()).'=1',
+ 'edit'=>intval($CI->vunsy->edit_mode()).'=1'
),
'vars' => array(
'level'=>$CI->session->userdata('level'),
'user'=>$CI->session->userdata('id'),
'section'=>$CI->vunsy->section->id,
- 'mode'=>"'".$CI->session->userdata('mode')."'",
)
);
}

0 comments on commit 2b66430

Please sign in to comment.