added rating subsystem to discussion
This commit is contained in:
parent
e3516d209e
commit
3a60989c48
5 changed files with 94 additions and 5 deletions
|
|
@ -8,6 +8,12 @@ use WebGUI::Session;
|
|||
use WebGUI::SQL;
|
||||
|
||||
|
||||
sub canPost {
|
||||
my ($self, $userId) = @_;
|
||||
$userId = $session{user}{userId} unless ($userId);
|
||||
return WebGUI::Privilege::isInGroup($self->get("groupToPost"));
|
||||
}
|
||||
|
||||
sub create {
|
||||
my ($self, $data) = @_;
|
||||
$data->{forumId} = "new";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue