blob: 820417e07540fe1fa436b964e2b09a16a42ec365 [file] [log] [blame]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +01001# Copyright 2016 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
Copybara854996b2021-09-07 19:36:02 +00004
5"""Protocol buffers for Monorail site-wide features."""
6
7from __future__ import print_function
8from __future__ import division
9from __future__ import absolute_import
10
11from protorpc import messages
12
13
14class UserTypeRestriction(messages.Enum):
15 """An enum for site-wide settings about who can take an action."""
16 # Anyone may do it.
17 ANYONE = 1
18
19 # Only domain admins may do it.
20 ADMIN_ONLY = 2
21
22 # No one may do it, the feature is basically disabled.
23 NO_ONE = 3
24
25 # TODO(jrobbins): implement same-domain users