Lines 1378-1383
sub check_api_auth {
Link Here
|
1378 |
Given a CGISESSID cookie set during a previous login to Koha, determine |
1378 |
Given a CGISESSID cookie set during a previous login to Koha, determine |
1379 |
if the user has the privileges specified by C<$userflags>. |
1379 |
if the user has the privileges specified by C<$userflags>. |
1380 |
|
1380 |
|
|
|
1381 |
C<$userflags> is a hash of module => subpermission, eg |
1382 |
{ tools => 'upload_local_cover_images', catalogue => '*' } |
1383 |
|
1381 |
C<check_cookie_auth> is meant for authenticating special services |
1384 |
C<check_cookie_auth> is meant for authenticating special services |
1382 |
such as tools/upload-file.pl that are invoked by other pages that |
1385 |
such as tools/upload-file.pl that are invoked by other pages that |
1383 |
have been authenticated in the usual way. |
1386 |
have been authenticated in the usual way. |
1384 |
- |
|
|