|
Lines 229-235
sub authenticate_api_request {
Link Here
|
| 229 |
|
229 |
|
| 230 |
my $permissions = $authorization->{'permissions'}; |
230 |
my $permissions = $authorization->{'permissions'}; |
| 231 |
# Check if the user is authorized |
231 |
# Check if the user is authorized |
| 232 |
if ( haspermission($user->userid, $permissions) |
232 |
if ( ( defined($permissions) and haspermission($user->userid, $permissions) ) |
| 233 |
or allow_owner($c, $authorization, $user) |
233 |
or allow_owner($c, $authorization, $user) |
| 234 |
or allow_guarantor($c, $authorization, $user) ) { |
234 |
or allow_guarantor($c, $authorization, $user) ) { |
| 235 |
|
235 |
|
| 236 |
- |
|
|