Skip to content
Snippets Groups Projects
Commit bdbc16bf authored by andi's avatar andi
Browse files

Allow source view with read only permissions #383

darcs-hash:20050608210912-9977f-d7645e56001efd2ee6b08504a15ff7f293d8ae92.gz
parent fedfd84a
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,13 @@ function act_permcheck($act){ ...@@ -116,7 +116,13 @@ function act_permcheck($act){
if(in_array($act,array('save','preview','edit'))){ if(in_array($act,array('save','preview','edit'))){
if($INFO['exists']){ if($INFO['exists']){
$permneed = AUTH_EDIT; if($act == 'edit'){
//the edit function will check again and do a source show
//when no AUTH_EDIT available
$permneed = AUTH_READ;
}else{
$permneed = AUTH_EDIT;
}
}else{ }else{
$permneed = AUTH_CREATE; $permneed = AUTH_CREATE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment