pierobot / mangapie

This is a self-hosted server for archived manga.
BSD 3-Clause "New" or "Revised" License
65 stars 9 forks source link

Role Problem #168

Closed donotos closed 4 years ago

donotos commented 4 years ago

Hello.

I have encountered a problem while tweaking roles... I want to keep access to the admin panel with my user but at the same time i want to exclude some library from being accessed, and it is not possible with the actual system. I am either a member of Administrator and have access to everything, or a member of another role wich cannot access the admin panel. Could you add an "Access to Admin panel" option in the roles permissions?

Thanks.

pierobot commented 4 years ago

If a user has access to admin panel they'll be able to give themselves access to a library.

The only solution to your problem is to make a super admin role that is only available to one user and a gimped admin role that has access to specific parts of the admin panel.

What part of the admin panel do you need?

donotos commented 4 years ago

I'm not aiming to restrict access to the library. If a user is an admin it's perfectly normal that he can access everything and give himself any right. what i want is that the user can, while being an admin disable some library for himself, like for exemple disabling the "completed" library so that it's content does not show.

pierobot commented 4 years ago

Oh okay that makes more sense. I suppose I can add that in at some point.

Would having a better search/filter system be the solution to your "completed" problem? Either marked as completed on mangaupdates or completed on your own list?

donotos commented 4 years ago

the "completed" was just an exemple. What i want to do is separating mangas and webtoons by having a user for each but a search and home filter that would show only the library i want is an option too, maybe by creating some profiles and then changing them with a menu on the top bar.

pierobot commented 4 years ago

Oh that makes things simple then. I was actually planning on adding an option to filter the shown libraries by the library name. I can also easily add it to the search options.

If you still think the original issue is important then leave it open otherwise just close it and make a new one for the library filters.

donotos commented 4 years ago

before closing that one, you said:

Either marked as completed on mangaupdates or completed on your own list?

can you fetch users infos on MU? like my lists, the chapter etc... because that would be awesome to have that on mangapie or even uptating MU through mangapie....

pierobot commented 4 years ago

Yes, feel free to make an issue for anything. :+1:

donotos commented 4 years ago

will do!