Changeset 407
- Timestamp:
- 10/05/12 12:45:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r405 r407 173 173 174 174 _commoncheck(\%args, 'y'); 175 176 # not sure how to usefully represent permissions from any further out from DNSDB.pm :/ 175 die "Missing new group name\n" if !$args{groupname}; 176 die "Missing parent group ID\n" if !$args{parent_id}; 177 178 # not sure how to usefully represent permissions via RPC. :/ 177 179 # not to mention, permissions are checked at the UI layer, not the DB layer. 178 180 my $perms = {domain_edit => 1, domain_create => 1, domain_delete => 1, … … 189 191 190 192 _commoncheck(\%args, 'y'); 193 die "Missing group ID or name to remove\n" if !$args{group}; 191 194 192 195 my ($code,$msg); … … 196 199 } else { 197 200 my $grpid = DNSDB::groupID($dbh, $args{group}); 198 die "Can't find group " if !$grpid;201 die "Can't find group\n" if !$grpid; 199 202 ($code,$msg) = DNSDB::delGroup($dbh, $grpid); 200 203 } 201 204 die $msg if $code eq 'FAIL'; 205 return $msg; 202 206 } 203 207
Note:
See TracChangeset
for help on using the changeset viewer.