Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would love a way to 100% disable organizations #19391

Closed
Jieiku opened this issue Apr 13, 2022 · 2 comments
Closed

Would love a way to 100% disable organizations #19391

Jieiku opened this issue Apr 13, 2022 · 2 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@Jieiku
Copy link

Jieiku commented Apr 13, 2022

Feature Description

Would love a way to 100% disable organizations

I have locked it down as far as I think possible in app.ini:

[service]
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ORG_VISIBILITY            = private
DEFAULT_ORG_MEMBER_VISIBLE        = false

[admin]
DISABLE_REGULAR_ORG_CREATION = true

Screenshots

I want to COMPLETELY disable organizations, so that this box goes away completely:

2022-04-12_23-13-13

@Jieiku Jieiku added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Apr 13, 2022
@wxiaoguang
Copy link
Contributor

You can disable it by a customized css:

#dashboard-repo-list .menu .item:nth-child(2) {
  display: none;
}

@Jieiku
Copy link
Author

Jieiku commented Apr 13, 2022

@wxiaoguang that did not work the top box is still there, also the Sources menu item is now missing between All and Forks:

2022-04-12_23-35-00

however after a few minutes I think I figured it out, hopefully no other side effects:

#dashboard-repo-list > div > div:first-child {
  display: none !important;
}

2022-04-12_23-52-51

I think an official config option for app.ini would be better than a css hack.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants