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

Add option for disable explore when not logined #4577

Open
ziozzang opened this issue Jun 23, 2017 · 4 comments
Open

Add option for disable explore when not logined #4577

ziozzang opened this issue Jun 23, 2017 · 4 comments
Labels
🔨 enhancement Make it better, faster priority: low Open source project is supported at the best effort

Comments

@ziozzang
Copy link

Description

for security reason, need configuration options for disabling explore navigation when not login status.

I searched manual. but not such options. :) Thanks.

@afilippov1985
Copy link
Contributor

custom/conf/app.ini

[service]
REQUIRE_SIGNIN_VIEW = true

@ziozzang
Copy link
Author

ziozzang commented Jun 26, 2017

I know already that options. and tested.
That's different what I want to do.

I just want to block only explore menu. it shows all users and repos.

I want to use public repo as public even if not logined. so, I want to use public repo's raw files, even not login. That option block all pages if not logined.

@unknwon unknwon added 🔨 enhancement Make it better, faster priority: low Open source project is supported at the best effort labels Jun 27, 2017
@JulianKunkel
Copy link

JulianKunkel commented May 24, 2018

I did achieve this by creating: custom/templates/explore/users.tmpl with the following code.
Note that the key is to add: {{if .IsSigned}}. Once Gogs is restarted, it takes the templates to recreate the pages and you should be good.

tmpl.txt

You can see this live here: https://git.hps.vi4io.org/explore/users

@ForumPlayer
Copy link

I know already that options. and tested.
That's different what I want to do.

I just want to block only explore menu. it shows all users and repos.

I want to use public repo as public even if not logined. so, I want to use public repo's raw files, even not login. That option block all pages if not logined.

I need this too, actually my Gogs is set to private because of that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 enhancement Make it better, faster priority: low Open source project is supported at the best effort
Projects
None yet
Development

No branches or pull requests

5 participants