Attempting to fix permissions

This commit is contained in:
Lucas Nicodemus 2011-07-19 20:36:15 -06:00
parent 4270d72047
commit 8fa45f4aae
4 changed files with 12 additions and 1 deletions

View file

@ -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 );