Skip to content
Snippets Groups Projects
Commit 74089e5c authored by Megan Henning's avatar Megan Henning
Browse files

Remove unused util method

parent 14ff9545
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,6 @@ CONT_TYPES = ['acquisition', 'analysis', 'collection', 'group', 'project', 'sess
def getPerm(name):
return INTEGER_ROLES[name]
def get_perm_name(cont_type):
if cont_type == 'group':
return 'roles'
if cont_type in ['projects', 'collections', 'sessions', 'acquisitions']:
return 'permissions'
def add_id_to_subject(subject, pid):
"""
Add a mongo id field to given subject object (dict)
......
......@@ -4,7 +4,6 @@ from . import (
es_query, add_filter_from_list, add_filter
)
from .. import config
from ..dao.containerutil import get_perm_name
log = config.log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment