You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
close #24449 The unit of `Actions` should be contorlled not only by `repository.DISABLED_REPO_UNITS` but also by `actions.ENABLED` in the `app.ini`. Previously, the permission of the team's `Actions` unit was not controlled by `actions.Enabled`. So, even if the user sets `actions.Enabled` to false, he can still select the permission of the `Actions` unit for the team. This PR makes the permissions of the team's `Actions` unit also controlled by `actions.Enabled`. Just append`TypeActions` into `DisabledRepoUnits` slice when initializing if `actions.Enabled` is false. ### Changes: If `Actions` is set disbaled in `app.ini`, like below: ```yaml [actions] ENABLED = false ``` 1. If user try to create/edit a team, will prompt user that `Actions` is disabled. ![image](https://user-images.githubusercontent.com/33891828/236370415-961082b2-82d2-4d9e-8025-83872ad08cbb.png) 2. `actions` is not displayed in the sidebar on the team details page ![image](https://user-images.githubusercontent.com/33891828/236371817-f39f9bc9-5926-4b88-b5e6-d93617fcfb07.png) |
1 year ago | |
---|---|---|
.. | ||
actions | 1 year ago | |
activitypub | 1 year ago | |
analyze | 2 years ago | |
assetfs | 1 year ago | |
auth | 1 year ago | |
avatar | 1 year ago | |
base | 1 year ago | |
cache | 1 year ago | |
charset | 1 year ago | |
container | 2 years ago | |
context | 1 year ago | |
csv | 1 year ago | |
doctor | 1 year ago | |
emoji | 2 years ago | |
eventsource | 2 years ago | |
generate | 2 years ago | |
git | 1 year ago | |
gitgraph | 1 year ago | |
graceful | 1 year ago | |
hcaptcha | 1 year ago | |
highlight | 1 year ago | |
hostmatcher | 2 years ago | |
html | 2 years ago | |
httpcache | 1 year ago | |
httplib | 1 year ago | |
indexer | 1 year ago | |
issue/template | 1 year ago | |
json | 2 years ago | |
label | 1 year ago | |
lfs | 1 year ago | |
log | 1 year ago | |
markup | 1 year ago | |
mcaptcha | 2 years ago | |
metrics | 1 year ago | |
migration | 1 year ago | |
mirror | 2 years ago | |
nosql | 1 year ago | |
notification | 1 year ago | |
options | 1 year ago | |
packages | 1 year ago | |
paginator | 1 year ago | |
pprof | 2 years ago | |
private | 1 year ago | |
process | 1 year ago | |
proxy | 1 year ago | |
proxyprotocol | 2 years ago | |
public | 1 year ago | |
queue | 1 year ago | |
recaptcha | 2 years ago | |
references | 1 year ago | |
regexplru | 2 years ago | |
repository | 1 year ago | |
secret | 1 year ago | |
session | 1 year ago | |
setting | 1 year ago | |
sitemap | 2 years ago | |
ssh | 2 years ago | |
storage | 1 year ago | |
structs | 1 year ago | |
svg | 1 year ago | |
sync | 2 years ago | |
system | 2 years ago | |
templates | 1 year ago | |
test | 1 year ago | |
timeutil | 1 year ago | |
translation | 1 year ago | |
turnstile | 1 year ago | |
typesniffer | 1 year ago | |
updatechecker | 2 years ago | |
upload | 2 years ago | |
uri | 2 years ago | |
user | 2 years ago | |
util | 1 year ago | |
validation | 1 year ago | |
web | 1 year ago | |
webhook | 2 years ago |