Lines 1744-1750
subtest 'opac_summary_html' => sub {
Link Here
|
1744 |
|
1744 |
|
1745 |
subtest 'can_be_edited() tests' => sub { |
1745 |
subtest 'can_be_edited() tests' => sub { |
1746 |
|
1746 |
|
1747 |
plan tests => 8; |
1747 |
plan tests => 9; |
1748 |
|
1748 |
|
1749 |
$schema->storage->txn_begin; |
1749 |
$schema->storage->txn_begin; |
1750 |
|
1750 |
|
Lines 1789-1794
subtest 'can_be_edited() tests' => sub {
Link Here
|
1789 |
|
1789 |
|
1790 |
ok( !$biblio->can_be_edited($fa_patron), "Fast add permissions are not enough" ); |
1790 |
ok( !$biblio->can_be_edited($fa_patron), "Fast add permissions are not enough" ); |
1791 |
ok( $fa_biblio->can_be_edited($fa_patron), "Fast add user can edit FA records" ); |
1791 |
ok( $fa_biblio->can_be_edited($fa_patron), "Fast add user can edit FA records" ); |
|
|
1792 |
ok( $fa_biblio->can_be_edited($patron), "edit_catalogue user can edit FA records" ); |
1792 |
|
1793 |
|
1793 |
# Mock the record source doesn't allow direct editing |
1794 |
# Mock the record source doesn't allow direct editing |
1794 |
$source_allows_editing = 0; |
1795 |
$source_allows_editing = 0; |
1795 |
- |
|
|