allowed is a helper function that returns an allowed PermissionCheckResponse with the provided PermissionCheckResponseMetadata. The function works as follows: 1. The function takes a PermissionCheckResponseMetadata as input parameter. 2. The function returns an allowed PermissionCheckResponse with
(meta *base.PermissionCheckResponseMetadata)
| 892 | // 1. The function takes a PermissionCheckResponseMetadata as input parameter. |
| 893 | // 2. The function returns an allowed PermissionCheckResponse with a RESULT_ALLOWED Can value and the provided metadata. |
| 894 | func allowed(meta *base.PermissionCheckResponseMetadata) *base.PermissionCheckResponse { |
| 895 | return &base.PermissionCheckResponse{ |
| 896 | Can: base.CheckResult_CHECK_RESULT_ALLOWED, |
| 897 | Metadata: meta, |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | // emptyResponseMetadata creates and returns an empty PermissionCheckResponseMetadata. |
| 902 | // |
no outgoing calls
no test coverage detected