Ctrlpanel-gg / panel

CtrlPanel offers an easy-to-use and free billing solution for all starting and experienced hosting providers that seamlessly integrates with the Pterodactyl panel.
https://ctrlpanel.gg/
MIT License
404 stars 137 forks source link

[feature] Custom roles #157

Closed 144reasons closed 2 years ago

144reasons commented 3 years ago

🚀 Feature Request

Is your proposal related to a problem?

Provide a clear and concise description of what the problem is. For example, "I can't change x and it makes me have to do manual work"

Not really

Describe the solution you'd like

Provide a clear and concise description of what you want to happen. For Example, "Automate the changing of x so I don't have to do it manually"

A good feature that could be very beneficial is to be able to create custom roles on the panel, just to label certain users. Id attempt to make this myself but php

anondev-sudo commented 2 years ago

Good idea

anondev-sudo commented 2 years ago

But if admins will be able to write custom notes to user details, it will solve your issue I think. Those notes should be visible just to admins when they are viewing user details

1day2die commented 2 years ago

What exactly would this be for? Why would i label users?

144reasons commented 2 years ago

To seperate people like discord server boosters and actual donators

1day2die commented 2 years ago

hi,

can we come back to this? Do the roles need special permissions in the Panel or is this only for labeling and "grouping" users? and should 1 user be able to be in multiple "groups"?

ayodev-in commented 2 years ago

Yes, it would be nice if it's possible

1day2die commented 2 years ago

Yes, it would be nice if it's possible

if what is possible? i asked 2 questions there^^

ayodev-in commented 2 years ago

Yes, it would be nice if it's possible

if what is possible? i asked 2 questions there^^

Uh, it would be nice if it's possible to get the role to special permissions

1day2die commented 2 years ago

Permissions...like? Man please give me something to work with xD

144reasons commented 2 years ago

I originally thought just to group people, but adding certain permissions would be cool, just don't know what rn

1day2die commented 2 years ago

ill look into this. Will however only include labeling with a name and different colored badges.

144reasons commented 2 years ago

Yeah, I feel that adding custom permissions would be way more difficult than it should be kek If possible, can you also make it so that its possible to add and remove roles with the api? And possibly create them. Not sure what you have in mind tho

jvvan commented 2 years ago

Definitely possible, if we are going to add roles and permissions we will probably use laravel-permission

LogischJo commented 2 years ago

Definitely possible, if we are going to add roles and permissions we will probably use laravel-permission

That’s what AVMG talked about before already if I remember correctly

144reasons commented 2 years ago

Never saw AVMG mention it, but very good idea!

1day2die commented 2 years ago

i dont see any need for other permissions than admin tbh xD im keen on finding out

jvvan commented 2 years ago

i dont see any need for other permissions than admin tbh xD im keen on finding out

It is useful if you have multiple support members, they should be able to access servers, users, and vouchers, but there is no reason for them to be able to edit products, configuration, or create API keys.

1day2die commented 2 years ago

v1