Changeset 9631

Show
Ignore:
Timestamp:
05/18/08 12:02:28 (5 months ago)
Author:
erickson
Message:

for lack of a more context-specific perm org, checking some global perms agains workstation org

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/src/perlmods/OpenILS/Application/Cat.pm

    r9527 r9631  
    195195        my $e = new_editor(authtoken=>$auth, xact=>1); 
    196196        return $e->die_event unless $e->checkauth; 
    197         return $e->die_event unless $e->allowed('CREATE_MARC'); 
     197        return $e->die_event unless $e->allowed('CREATE_MARC', $e->requestor->ws_ou); 
    198198 
    199199        my $rec = $e->retrieve_biblio_record_entry($recid) 
     
    274274    my $e = new_editor(xact=>1, authtoken=>$authtoken); 
    275275    return $e->die_event unless $e->checkauth; 
    276     return $e->die_event unless $e->allowed('IMPORT_MARC'); 
     276    return $e->die_event unless $e->allowed('IMPORT_MARC', $e->requestor->ws_ou); 
    277277 
    278278        my( $evt, $tcn, $tcn_source, $marcdoc ); 
     
    10141014sub fix_copy_price { 
    10151015        my $copy = shift; 
    1016         my $p = $copy->price || 0; 
    1017         $p =~ s/\$//og; 
    1018         $copy->price($p); 
     1016 
     1017    if(defined $copy->price) { 
     1018            my $p = $copy->price || 0; 
     1019            $p =~ s/\$//og; 
     1020            $copy->price($p); 
     1021    } 
    10191022 
    10201023        my $d = $copy->deposit_amount || 0; 
     
    10841087    my $e = new_editor(xact=>1, authtoken=>$auth); 
    10851088    return $e->die_event unless $e->checkauth; 
    1086     return $e->die_event unless $e->allowed('DELETE_RECORD'); 
     1089    return $e->die_event unless $e->allowed('DELETE_RECORD', $e->requestor->ws_ou); 
    10871090    my $vols = $e->search_asset_call_number({record=>$rec_id, deleted=>'f'}); 
    10881091    return OpenILS::Event->new('RECORD_NOT_EMPTY', payload=>$rec_id) if @$vols;