Skip to content

Enhancement (Smart Contract) #6

@StaySafe020

Description

@StaySafe020

update_record hardcodes Role::Doctor as fallback in audit log
In update_delete_record.rs, the audit log role assignment falls back to Role::Doctor for the record creator even if they are a nurse, hospital, or any other role. The actual role should be passed as a parameter or looked up from the access grant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions