question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hide flag-submit-box for anonymous users

See original GitHub issue

Environment:

  • CTFd Version/Commit: 2.0.1 from master
  • Operating System: Debian Stretch, Ubuntu 18.04, …
  • Web Browser and Version: Firefox 63

What happened?

  • In admin, set visibility of challenges to public
  • Logout
  • Open challenge view (/challenges)
  • Click on a challenge
  • Box to submit flag is displayed, but not possible to submit flag

selection_615

What did you expect to happen?

  • Open challenge view (/challenges)
  • Click on a challenge
  • NO Box to submit flag is displayed

selection_616

How to reproduce your issue

see above

Any associated stack traces or error logs

none

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ColdHeatcommented, Dec 11, 2018

Being able to submit encourages a sign up I think 😄

1reaction
ColdHeatcommented, Dec 11, 2018

So just to be clear, instead of not showing the submission box the way that we handle submissions for unauthed users is that they should be able to submit and then upon submission they get redirected to the login page.

I should have a fix for this soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to hide Anonymous users not to view /Forms/AllItems ...
Hi. we published a share point 2013 publishing site to internet , users can view reports pages,content pages anonymously without ...
Read more >
Hide header elements for anonymous users?
Solved: I'd like to remove these elements from the Confluence header for anonymous/unregistered users: "Log in" can stay. I've looked at.
Read more >
Hide From Anonymous User Macro - smartics
This is a simple macro that will reveal it's body content only to users that have themselves authenticated with the server.
Read more >
Is there any SIMPLE way to hide errors ONLY for anonymous ...
The slightly adapted code to hide errors for anonymous users looks like so: function phptemplate_status_messages($display = NULL) { $output ...
Read more >
How to hide Sidebar_Menu links for anonymous users?
0, I have added, just for the sake of comfortability, some admin-oriented links to the Sidebar menu, but these links appear to anonymous...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found