projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix propagation of circular referencing D records
[spider.git]
/
cmd
/
set
/
privilege.pl
diff --git
a/cmd/set/privilege.pl
b/cmd/set/privilege.pl
index 60804a779f3eba72bb1cef0e2912920baff86045..183c101b948cea8ebd8c9458d8f58b5524f94673 100644
(file)
--- a/
cmd/set/privilege.pl
+++ b/
cmd/set/privilege.pl
@@
-5,7
+5,7
@@
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
#
# Copyright (c) 1998 Dirk Koopman G1TLH
#
-#
$Id$
+#
#
my ($self, $line) = @_;
my @args = split /\s+/, $line;
#
my ($self, $line) = @_;
my @args = split /\s+/, $line;
@@
-15,7
+15,7
@@
my @out;
my $user;
my $ref;
my $user;
my $ref;
-if ($self->priv < 9) {
+if ($self->priv < 9
|| $self->remotecmd || $self->inscript
) {
Log('DXCommand', $self->call . " attempted to set privilege $priv for @args");
return (1, $self->msg('e5'));
}
Log('DXCommand', $self->call . " attempted to set privilege $priv for @args");
return (1, $self->msg('e5'));
}
@@
-26,13
+26,13
@@
if ($priv < 0 || $priv > 9) {
foreach $call (@args) {
$call = uc $call;
foreach $call (@args) {
$call = uc $call;
- unless ($self->remotecmd) {
- if ($ref = DXChannel
->
get($call)) {
+ unless ($self->remotecmd
|| $self->inscript
) {
+ if ($ref = DXChannel
::
get($call)) {
$ref->priv($priv);
$ref->user->priv($priv);
$ref->user->put();
}
$ref->priv($priv);
$ref->user->priv($priv);
$ref->user->put();
}
- if (!$ref && ($user = DXUser->get
_exact
($call))) {
+ if (!$ref && ($user = DXUser->get($call))) {
$user->priv($priv);
$user->put();
}
$user->priv($priv);
$user->put();
}