Switch to unified view

a/Allura/allura/model/project.py b/Allura/allura/model/project.py
...
...
461
    def first_mount(self, required_access=None):
461
    def first_mount(self, required_access=None):
462
        '''Returns the first (toolbar order) mount, or the first mount to
462
        '''Returns the first (toolbar order) mount, or the first mount to
463
        which the user has the required access.'''
463
        which the user has the required access.'''
464
        from allura.ext.project_home import ProjectHomeApp
464
        from allura.ext.project_home import ProjectHomeApp
465
        mounts = self.ordered_mounts()
465
        mounts = self.ordered_mounts()
466
        if self.private_project_of():
467
            for mount in mounts:
468
                if 'ac' in mount and mount['ac'].tool_name == 'profile':
469
                    return mount
466
        if mounts and required_access is None:
470
        if mounts and required_access is None:
467
            return mounts[0]
471
            return mounts[0]
468
        for mount in mounts:
472
        for mount in mounts:
469
            if 'sub' in mount:
473
            if 'sub' in mount:
470
                obj = mount['sub']
474
                obj = mount['sub']