Skip to content

Commit

Permalink
Merge pull request #19 from mandrew/crud-feedback-model
Browse files Browse the repository at this point in the history
FIX Non-admin users cannot view the feedback in the module admin
  • Loading branch information
mandrew committed Feb 18, 2016
2 parents 7bd99d0 + 3b9d11c commit 3cf1b03
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/model/Feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,18 @@ class Feedback extends DataObject
'Comment',
'URL'
);

public function canView($member = null) {
return Permission::check('CMS_ACCESS_FeedbackAdmin');
}
public function canEdit($member = null) {
return Permission::check('CMS_ACCESS_FeedbackAdmin');
}
public function canDelete($member = null) {
return Permission::check('CMS_ACCESS_FeedbackAdmin');
}
public function canCreate($member = null) {
return Permission::check('CMS_ACCESS_FeedbackAdmin');
}

}

0 comments on commit 3cf1b03

Please sign in to comment.