[gen] ToolMixin::getHomePage: removed unneeded calls to m_goto.
This commit is contained in:
parent
307f4e152e
commit
195adf8d11
|
@ -69,14 +69,14 @@ class ToolMixin(BaseMixin):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
if not url:
|
if not url:
|
||||||
# Bring Managers to the config, lead others to pxHome.
|
# Bring Managers to the config, lead others to pxHome
|
||||||
user = self.getUser()
|
user = self.getUser()
|
||||||
if not user:
|
if not user:
|
||||||
raise Exception(USER_NOT_FOUND % self.identifyUser()[0])
|
raise Exception(USER_NOT_FOUND % self.identifyUser()[0])
|
||||||
if user.has_role('Manager'):
|
if user.has_role('Manager'):
|
||||||
url = self.goto(self.absolute_url())
|
url = self.absolute_url()
|
||||||
else:
|
else:
|
||||||
url = self.goto('%s/home' % self.absolute_url())
|
url = '%s/home' % self.absolute_url()
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def getHomeObject(self, inPopup=False):
|
def getHomeObject(self, inPopup=False):
|
||||||
|
|
Loading…
Reference in a new issue