Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmj committed Jan 30, 2012
1 parent 242c1d5 commit fedb732
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ to work with other plugins.
An institution wants only trusted people to leave comments for anyone to read. It doesn't trust some of them enough to allow
comments to be automatically public.

The trusted people could have the Researcher role in Omeka, with commenting configured to allow Researchers to comment.
The Admin role is the only role that can moderate comments, and Public is allowed to view comments.
The semi-trusted people could have the Researcher role in Omeka, with commenting configured to allow Researchers to comment.
The Admin role is the only role that can moderate comments to approve them, and Public is allowed to view comments.


3 changes: 3 additions & 0 deletions controllers/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ public function updateapprovedAction()
$data = $comment->getAkismetData();
try {
$ak->submitHam($data);
$response = array('status'=>'ok');
$comment->save();
} catch (Exception $e) {
_log($e->getMessage());
$response = array('status'=>'fail', 'message'=>$e->getMessage());
}

} else {
Expand Down

0 comments on commit fedb732

Please sign in to comment.