Server rules #237
Replies: 6 comments 2 replies
-
SirCoolness wrote at May 4 2016 20:20:53 UTC: it could be done but with allot of work. well it would take allot of editing but ill do you the favor of telling you where some of the important files for that are. this is very technical and is best if you have an idea of what your doing. I also want to point out that im only showing you where you want to look if you want to setup groups. Before we get started I wanted to point out a few things. Pufferpanel groups are confirmed by the "root_admin" number (1 = admin, 0 = default). So I suggest representing the new groups with numbers (eg. mod = 2). 1 pufferpanel gets the user's group at /srv/pufferpanel/src/core/authentication.php. here is the section where that is determined.
2 next the users rank is stored in mysql > pufferpanel > users > root_admin (table) 3 the dropdown menu in account viewing to set a user's access is located at /srv/pufferpanel/app/views/admin/account/view.html in this section.
4 and you may want to add a the user tag is located at /srv/pufferpanel/app/views/admin/account/find.html in this section
Now that i covered the main files for groups now we have to do permissions. Im only going to give a few examples because explaining on how to do them all would be way to long. when adding and permissions you want to look for statements like this
and make sure you dont break the original access. _some of the most common places to find that admin access rule is /srv/pufferpanel/app/views /srv/pufferpanel/src/core_ If you want the new group to be able to see all the servers. go to /srv/pufferpanel/app/views/panel/index.html and edit this section
and this section
well anyhow i hope you have a better understanding on how to setup more groups. |
Beta Was this translation helpful? Give feedback.
-
SirCoolness wrote at May 4 2016 20:20:53 UTC: no problem tell me if it works out :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
SirCoolness wrote at May 4 2016 20:20:53 UTC: Did you add the group by adding and elseif statement. The error seems to be caused by improper implementation. This also could be caused because I might have missed a file. I'll try this too and report my results. |
Beta Was this translation helpful? Give feedback.
-
SirCoolness wrote at May 4 2016 20:20:53 UTC: I was going to suggest something more like (This is an example and actually won't work)
|
Beta Was this translation helpful? Give feedback.
-
puffrfish wrote at May 4 2016 20:20:53 UTC: I'm just going to put a disclaimer on this thread. While I am grateful that Incrementing has provided a very detailed response to this, much like anything in the modifications section the PufferPanel developers do not endorse or provide support for the modifications being discussed here, and they should not be attempted by users who are not comfortable working with PHP. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Maydex wrote at May 4 2016 20:20:53 UTC:
Hi guys,
Is there a way to add another group to the panel for staff with custom permissions?
Thanks in advance.
puffrfish said:
Beta Was this translation helpful? Give feedback.
All reactions