index 237320ae9d3e0c3b66c16421d46525e6f91e96aa..778766f9933f06e08ceb3b40db181176c3fb1126 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: dbinit.py,v 1.26 2002-09-09 23:55:19 richard Exp $
+# $Id: dbinit.py,v 1.29 2002-09-13 03:31:18 richard Exp $
import os
# SECURITY SETTINGS
#
# new permissions for this schema
- for cl in 'issue', 'file', 'msg', 'user':
+ for cl in 'issue', 'file', 'msg', 'user', 'query', 'keyword':
db.security.addPermission(name="Edit", klass=cl,
description="User is allowed to edit "+cl)
db.security.addPermission(name="View", klass=cl,
# Assign the access and edit permissions for issue, file and message
# to regular users now
- for cl in 'issue', 'file', 'msg':
+ for cl in 'issue', 'file', 'msg', 'query', 'keyword':
p = db.security.getPermission('View', cl)
db.security.addPermissionToRole('User', p)
p = db.security.getPermission('Edit', cl)
# - Allow anonymous users access to the "issue" class of data
# Note: this also grants access to related information like files,
# messages, statuses etc that are linked to issues
- #p = db.security.getPermission('View', 'issue')
- #db.security.addPermissionToRole('Anonymous', p)
+ p = db.security.getPermission('View', 'issue')
+ db.security.addPermissionToRole('Anonymous', p)
# - Allow anonymous users access to edit the "issue" class of data
# Note: this also grants access to create related information like
# files and messages etc that are linked to issues