PeerTube version or commit: 1.0.0-alpha.8
What is the expected behaviour?
When an instance only accept uploads from known users, the “Upload” button in the top bar is useless to anonymous visitors. Administrators should have an option to hide it. Or maybe this should just be linked to the “Signup enabled” setting.
The “Upload” button in the top bar is visible to visitors.
I disagree. This upload button is useful even if the user is not logged in because:
Our instance is a run for a closed community. We have a process for accepting new members. Random visitors will never be allowed to upload videos on our instance. The button is pure noise for them.
Hello, as a cheap hack, i would propose to add a css class on the body or the app that indicates the state of login (.not-logged or .logged).
An instance willing to hide the upload button for non logged users could add a custom css like:
.not-logged .upload-button { display:none; }
Here you go: https://github.com/Chocobozzz/PeerTube/commit/d414207f07f47307947d86d5bc5c5fc0ae73be18
Just add this as custom CSS:
.user-not-logged-in .upload-button {
display: none;
}
I also think that the button can be misleading.
It helps people to understand you can upload videos on this platform
Couldn't it be shown only if registration is enabled on the instance ?
Some administrators ask people to send them an email for registration. If this button is not there, unregistered users would not understand that they could ask for an account to upload videos.
Then we could redirect people on another instance in the login form.
Most helpful comment
Our instance is a run for a closed community. We have a process for accepting new members. Random visitors will never be allowed to upload videos on our instance. The button is pure noise for them.