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 "roles" for site administrators and channels #312

Closed
4 tasks done
omarroth opened this issue Jan 23, 2019 · 5 comments
Closed
4 tasks done

Add "roles" for site administrators and channels #312

omarroth opened this issue Jan 23, 2019 · 5 comments
Labels
enhancement Improvement of an existing feature

Comments

@omarroth
Copy link
Contributor

omarroth commented Jan 23, 2019

For folks hosting their own instance of Invidious, it is desirable to customize the home page and disable various other aspects of the site. Some of the desired options include:

Although other options for administrators would also be helpful for managing instances. This issue would also include the ability to change the role of a user to administrator or channel owner, the latter of which would likely be done automatically.

In #264, there was some mention of allowing channel owners to change comment settings under videos, and I can see that functionality being extended to be more useful. I'll probably add a list here as well for any functionality that is suggested.

This issue is to help track the functionality mentioned here, and as a prerequisite for the above issues.

@tmiland
Copy link
Contributor

tmiland commented Feb 23, 2019

Any progress on "Hide watched videos or disable "top" page for smaller instances"? 🙂

@omarroth
Copy link
Contributor Author

Unfortunately not. I've been focusing on bug fixes before new features, so I haven't had much time to look at this. Consider this first on the list.

@tmiland
Copy link
Contributor

tmiland commented Feb 24, 2019

Unfortunately not. I've been focusing on bug fixes before new features, so I haven't had much time to look at this. Consider this first on the list.

Thank you, no worries. 👍

@Perflyst
Copy link
Contributor

Perflyst commented Feb 24, 2019 via email

@omarroth
Copy link
Contributor Author

omarroth commented Mar 1, 2019

Added with a39b158. You can make yourself an administrator by adding your user ID to the config like this:

#...
domain: invidio.us
admins:
- YOUR_USER_ID

Which will show the following in /preferences:
image

Saving site preferences will write to config.yml. You can also edit the config directly.

I'd like there to be a better way of designating a user admin. For assigning a user as owner of a channel, I'll plan on adding a role column to users, and refactoring this to work similarly.

For additional preferences I'd recommend opening a new issue. Since support for administrator preferences has been added I'm going to close this, and handle channel owners as a separate issue.

@omarroth omarroth closed this as completed Mar 1, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

3 participants