def my_grantable_permissions(self):
        # avoid circular dependency
        from grouper.permissions import filter_grantable_permissions

        all_permissions = {permission.name: permission
                           for permission in Permission.get_all(self.session)}
        if self.permission_admin:
            result = [(perm, '*') for perm in all_permissions.values()]
            return sorted(result, key=lambda x: x[0].name + x[1])

        # Someone can grant a permission if they are a member of a group that has a permission
        # of PERMISSION_GRANT with an argument that matches the name of a permission.
        grants = [x for x in self.my_permissions() if x.name == PERMISSION_GRANT]
        return filter_grantable_permissions(self.session, grants)
Return Channels names.
dataset/ETHPy150Open dropbox/grouper/grouper/model_soup.py/User.my_grantable_permissions--crossover with--dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/preprocessing/aux.py/getChannelNames