Attempting to fix permissions
This commit is contained in:
parent
4270d72047
commit
8fa45f4aae
4 changed files with 12 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TShockAPI.DB;
|
||||
|
||||
namespace TShockAPI
|
||||
{
|
||||
|
|
@ -59,6 +60,10 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
public void recursePermissions( string permission ){
|
||||
if (TShock.Users == null)
|
||||
{
|
||||
TShock.Users = new UserManager(TShock.DB);
|
||||
}
|
||||
if( TShock.Groups.GroupExists( permission ) )
|
||||
{
|
||||
Group g = Tools.GetGroup( permission );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue