fix: Consistency in `get_role_permissions` return value
fix: Consistency in `get_role_permissions` return value

- Return value contains `if_owner` propert in object same as py
- Elaborate code documentation

frappe/frappe,frappe/frappe,frappe/frappe