Only give out /op if the group has it, regardless of user staff setting

This commit is contained in:
Trever Fischer
2012-04-03 21:27:29 -04:00
parent 24e490e7f8
commit 5af80612ca

View File

@@ -12,8 +12,6 @@ class MinecraftProfile(models.Model):
def serverPermissions(self):
perms = []
if self.user.is_staff:
perms.append('bukkit.command.op.give')
for group in self.user.groups.all():
for perm in group.minecraftgroup.permissionList.split("\n"):
perms.append(perm.strip())