diff options
Diffstat (limited to 'modules/structs/org.go')
-rw-r--r-- | modules/structs/org.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/structs/org.go b/modules/structs/org.go index 38c6c6d6d8..4ae0ca8b6f 100644 --- a/modules/structs/org.go +++ b/modules/structs/org.go @@ -17,6 +17,15 @@ type Organization struct { RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` } +// OrganizationPermissions list differents users permissions on an organization +type OrganizationPermissions struct { + IsOwner bool `json:"is_owner"` + IsAdmin bool `json:"is_admin"` + CanWrite bool `json:"can_write"` + CanRead bool `json:"can_read"` + CanCreateRepository bool `json:"can_create_repository"` +} + // CreateOrgOption options for creating an organization type CreateOrgOption struct { // required: true |