Lines 75-82
sub get {
Link Here
|
75 |
error => "This macro is shared, you must access it via advanced_editor/macros/shared" |
75 |
error => "This macro is shared, you must access it via advanced_editor/macros/shared" |
76 |
}); |
76 |
}); |
77 |
} |
77 |
} |
78 |
warn $macro->borrowernumber; |
78 |
|
79 |
warn $patron->borrowernumber; |
|
|
80 |
if( $macro->borrowernumber != $patron->borrowernumber ){ |
79 |
if( $macro->borrowernumber != $patron->borrowernumber ){ |
81 |
return $c->render( status => 403, openapi => { |
80 |
return $c->render( status => 403, openapi => { |
82 |
error => "You do not have permission to access this macro" |
81 |
error => "You do not have permission to access this macro" |
83 |
- |
|
|