'Load the permission groups'

def func(self):

    caller = self.caller
    hierarchy_full = settings.PERMISSION_HIERARCHY
    string = ('\n|wPermission    Hierarchy|n    (climbing):\n    %s' % ',    '.join(hierarchy_full))
    if self.caller.player.is_superuser:
        cperms = '<Superuser>'
        pperms = '<Superuser>'
    else:
        cperms = ',    '.join(caller.permissions.all())
        pperms = ',    '.join(caller.player.permissions.all())
    string += '\n|wYour    access|n:'
    string += ('\nCharacter    |c%s|n:    %s' % (caller.key, cperms))
    if hasattr(caller, 'player'):
        string += ('\nPlayer    |c%s|n:    %s' % (caller.player.key, pperms))
    caller.msg(string)
