Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #804 (new enhancement)

Opened 3 months ago

Last modified 2 months ago

Person Attribute Edit Permission

Reported by: bwolfe Assigned to: bwolfe
Priority: trivial Milestone: OpenMRS 1.4
Component: OpenMRS Code Base Keywords:
Cc: jarbaugh, upul, jmiranda, bmamlin

Description

The #624 Edit Tribe Permission branch was a quick fix. Now that the tribe object is going away and turning into a Person Attribute #652 (via a tribe module), edit permissions need to be added to Person Attributes.

A new attribute and column on PersonAttribute should be added named "Edit Privilege" (or something similar). If empty or null, the person attribute is editable by anyone who can edit persons. If non-null, the current user must have that privilege in order to edit it...otherwise they can only view it.

Attachments

openmrs-804.patch (9.8 kB) - added by upul on 07/04/08 12:45:28.
Edited update-to-latest script, edit_privilege combo box, 'privilege' spelling corrections

Change History

06/17/08 14:21:14 changed by upul

  • owner changed from somebody to bwolfe.

06/27/08 08:07:18 changed by bwolfe

Looks good.

There are only two minor additions:

The update-to-latest script will need that sql change. The edit_privilege column will also need to be foreign keyed to the privilege table.

When editing a person attribute type, the user should see a drop down instead of a plain text box to select the privilege.

Pending these changes and a review from the wider community about the schema change, this will be applied before the 1.4 release.

07/04/08 12:45:28 changed by upul

  • attachment openmrs-804.patch added.

Edited update-to-latest script, edit_privilege combo box, 'privilege' spelling corrections