summaryrefslogtreecommitdiff
path: root/lib/RHRD
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-27 16:15:35 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-27 16:15:35 (GMT)
commit58e7ace78758e174628a7f138ffd519eaee383ea (patch)
treeb68b0a8dd77b66aa4f84167ef19188867679a36e /lib/RHRD
parent129f006062892600000d46d89d31524eee03fdfe (diff)
rhrd-user can update grid rights now
Diffstat (limited to 'lib/RHRD')
-rwxr-xr-xlib/RHRD/rddb.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/RHRD/rddb.pm b/lib/RHRD/rddb.pm
index 8f519c6..ccbff24 100755
--- a/lib/RHRD/rddb.pm
+++ b/lib/RHRD/rddb.pm
@@ -1794,10 +1794,10 @@ sub set_musicpools_user
my $rows = $ctx->{'dbh'}->do($sql, undef, $value, $username)
or return (undef, 'ERROR', "Database Error: " . $ctx->{'dbh'}->errstr);
- unless($rows == 1) {
+ if($rows < 1) {
return (undef, 'ERROR', "user '" . $username . "' not known by rivendell")
}
- return (1, 'OK', 'success');
+ return ($rows, 'OK', 'success');
}
sub get_musicpools_clocks