ForgeLink/forgelink/link_main.py
def install(self, project):
        'Set up any default permissions and roles here'
        self.config.options['project_name'] = project.name
        super(ForgeLinkApp, self).install(project)
        # Setup permissions
        role_admin = M.ProjectRole.by_name('Admin')._id
        role_anon = M.ProjectRole.anonymous()._id
        self.config.acl = [
            M.ACE.allow(role_anon, 'read'),
            M.ACE.allow(role_admin, 'configure'),
        ]
Set up any default permissions and roles here
Set up any default permissions and roles here
Set up any default permissions and roles here
def install(self, project):
        self.config.options['project_name'] = project.name
        super(ForgeLinkApp, self).install(project)
        role_admin = M.ProjectRole.by_name('Admin')._id
        role_anon = M.ProjectRole.anonymous()._id
        self.config.acl = [
            M.ACE.allow(role_anon, 'read'),
            M.ACE.allow(role_admin, 'configure'),
        ]
def install ( self , project ) : self . config . options [ 'project_name' ] = project . name super ( ForgeLinkApp , self ) . install ( project ) role_admin = M . ProjectRole . by_name ( 'Admin' ) . _id role_anon = M . ProjectRole . anonymous ( ) . _id self . config . acl = [ M . ACE . allow ( role_anon , 'read' ) , M . ACE . allow ( role_admin , 'configure' ) , ]
Set up any default permissions and roles here
Set up any default permissions and roles here
'Set up any default permissions and roles here' # Setup permissions
self
project