var $conflicted = 0;
var $message = false;
+ var $hasHistory = false;
function getAuth()
{
$this->canEdit = $this->hasPerm('MTrack.wiki','E');
// we might add more perms based on project later..
-
+ if (!$this->canEdit && $this->edit) {
+ return HTML_FlexyFramework::run('Noperm');
+ }
if ($this->doc) {
- // permissions to modify wiki?
- // by default anybody can view the wiki.. - at present..
- if (!$this->canEdit && $this->edit) {
-
- }
- MTrackACL::requireAnyRights("wiki:{$this->doc->pagename}", $this->edit ? 'modify' : 'read');
$this->hasHistory = true;
} else {
MTrackACL::requireAnyRights("wiki:$this->pi", $this->edit ? 'modify' : 'read');