fixed karma bug
This commit is contained in:
parent
d99aea0cda
commit
c7c40c0f7a
3 changed files with 5 additions and 2 deletions
|
|
@ -1,8 +1,11 @@
|
|||
6.99.4
|
||||
- fixed a bug where a user could transfer a negative amount of karma to a
|
||||
thread and actually gain karma from the thread.
|
||||
- fix: Make Package not in Admin Bar
|
||||
- fix: Survey Asset Copy Problems
|
||||
- fix: EMS Add Subevent
|
||||
|
||||
|
||||
6.99.3
|
||||
- Someone removed the status from the submission templates. That has been
|
||||
fixed.
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -960,7 +960,7 @@ sub www_transferKarma {
|
|||
my $self = shift;
|
||||
my $amount = $self->session->form->get("karma","integer");
|
||||
# cant have them giving more karma then they have
|
||||
if ($amount <= $self->session->user->karma) {
|
||||
if ($amount > 0 && $amount <= $self->session->user->karma) {
|
||||
$self->session->user->karma(-$amount, "Thread ".$self->getId, "Transferring karma to a thread.");
|
||||
my $newKarma = $self->get("karma")+$amount;
|
||||
my $karmaScale = $self->get("karmaScale") || 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue