[Koha-bugs] [Bug 14686] New menu option and permission for file uploading

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 24 20:44:24 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14686

Mirko Tietgen <mirko at abunchofthings.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49257|0                           |1
        is obsolete|                            |

--- Comment #7 from Mirko Tietgen <mirko at abunchofthings.net> ---
Created attachment 49552
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=49552&action=edit
Bug 14686: Add allows_add_by to check permissions for uploading

The three permissions in tools/upload-file.pl are moved to a custom
routine in DBIx's UploadedFile.pm. An additional granular permission
upload_general_files is added. (The dbrev patch will contain it too.)
At some point in time this could be moved to a Koha::Object class.

The routine is tested in Upload.t.

Test plan:
[1] Run t/db_dependent/Upload.t
[2] If you only apply this patch, you can also test uploading with a
    user that has edit_catalogue but does not have tools or circulate.
    Upload status should say: Denied.

Signed-off-by: Mirko Tietgen <mirko at abunchofthings.net>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list