update_string


Description:

protected string update_string (string current, Operation operation, bool allowed)

Updates a permission string with new operation permission(s).

Parameters:

current

Current permission string (e.g., "rw-", "???")

operation

Operation type(s) (can be combined with |, e.g., READ | WRITE)

allowed

Whether the operation(s) are allowed

Returns:

Updated permission string