Merge pull request #1494 from niphlod/fix/appadmin
fix issue with regex
This commit is contained in:
commit
e6a3081b42
1 file changed
+1
-1
@@ -310,7 +310,7 @@ def site():
|
|||||||
regex = re.compile('^\w+$')
|
regex = re.compile('^\w+$')
|
||||||
|
|
||||||
if is_manager():
|
if is_manager():
|
||||||
apps = [a for a in os.listdir(apath(r=request)) if regex.match(f) and
|
apps = [a for a in os.listdir(apath(r=request)) if regex.match(a) and
|
||||||
a != '__pycache__']
|
a != '__pycache__']
|
||||||
else:
|
else:
|
||||||
apps = [a.name for a in db(db.app.owner == auth.user_id).select()]
|
apps = [a.name for a in db(db.app.owner == auth.user_id).select()]
|
||||||
|
|||||||
Reference in new issue
Block a user