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

--- Comment #2 from Lisette Scheer <[email protected]> ---
Backward Compatibility
Permission Mapping Table
CREATE TABLE permission_mapping (
    old_module VARCHAR(64),
    old_code VARCHAR(64),
    new_resource VARCHAR(64),
    new_action VARCHAR(64),
    new_scope VARCHAR(64),
    PRIMARY KEY (old_module, old_code)
);

-- Examples:
INSERT INTO permission_mapping VALUES
    ('borrowers', 'edit_borrowers', 'patrons', 'update', 'own_library'),
    ('tools', 'items_batchmod', 'items', 'batch_modify', 'own_library'),
    ('acquisition', 'budget_manage_all', 'budgets', 'manage', 'any');
Compatibility Layer
# Old API still works during transition:
$patron->has_permission({ borrowers => 'edit_borrowers' })

# Internally translates to:
$patron->has_permission('patrons', 'update', 'own_library')

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to