Helper function to safely get user ID
(user *model.User)
| 594 | |
| 595 | // Helper function to safely get user ID |
| 596 | func getUserID(user *model.User) uint { |
| 597 | if user == nil { |
| 598 | return 0 |
| 599 | } |
| 600 | return user.ID |
| 601 | } |
| 602 | |
| 603 | // TestWritePermissionCombinations tests the combined permission check logic |
| 604 | // that is actually used in the codebase: |
no outgoing calls
no test coverage detected