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
omarroth opened this issue Jan 23, 2019 · 5 comments

Comments

@omarroth
Copy link
Owner

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:

  • Hide watched videos or disable "top" page for smaller instances #294
  • Disable creation of new users #293
  • Change default home page #295
  • Disable captcha #320

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

This comment has been minimized.

Copy link
Contributor

commented Feb 23, 2019

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

@omarroth

This comment has been minimized.

Copy link
Owner Author

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.

@tmiland

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link
Contributor

commented Feb 24, 2019

@omarroth

This comment has been minimized.

Copy link
Owner Author

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 Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.