if (!$this->canEdit && $this->edit) {
return HTML_FlexyFramework::run('Noperm');
}
+ $this->hasHistory = $this->doc ? true: false;
- if ($this->doc) {
-
- $this->hasHistory = true;
- } else {
- MTrackACL::requireAnyRights("wiki:$this->pi", $this->edit ? 'modify' : 'read');
- }
// blank doc.. on edit..
if ($this->doc === null && $this->edit) {
$this->doc = new MTrack_Wiki_Item($this->pi);
if ($this->edit) {
$this->title .= " (edit)";
}
- $this->canEdit = !$this->edit && MTrackACL::hasAnyRights("wiki:{$this->pi}", 'modify');
+
+ $this->canEdit = $this->edit ? false $this->canEdit ; // if they are editing remove that permission..
if ($this->doc && $this->doc->file) {