diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-27 16:15:35 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-27 16:15:35 (GMT) |
commit | 58e7ace78758e174628a7f138ffd519eaee383ea (patch) | |
tree | b68b0a8dd77b66aa4f84167ef19188867679a36e /lib | |
parent | 129f006062892600000d46d89d31524eee03fdfe (diff) |
rhrd-user can update grid rights now
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/RHRD/rddb.pm | 4 |
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 |