TACTIC Open Source
can i change this login screen for common user/artist ? - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: can i change this login screen for common user/artist ? (/showthread.php?tid=89)



can i change this login screen for common user/artist ? - fxside - 03-30-2020

Whenever a user logs in, though he can see his allotted task and nothing else. But for some reason even giving none permission in the TACTIC. He can still see all these tabs in the login screen and can manipulate some serious sections like creating assets & changing permissions like that. Plz see the screenshot :
[Image: Wot1nVp.png]


Now either I need some way to change this login screen to something else. Or else I want some way to common user to have no permission to modify such changes.

The user name is  : artist09
and these are his permission : 
[Image: Y2Gzq3m.png]

thanks


RE: can i change this login screen for common user/artist ? - lwinmoe - 03-31-2020

In my case, I needed to set the ``start_link`` column value for the login_group to the link I want the user to see when they log in. 

For example, I set it to "my_tasks".

Code:
sthpw=# select login_group, start_link from login_group;
login_group | start_link
-------------+------------
users       | my_tasks

The user now sees my_tasks tab when they log in. Please note that this is in TACTIC 4.7. I can't speak for 4.5. 

In 4.7, this is defined in ``src/tactic/ui/app/page_nav_container_wdg.py`` around line 86.

Code:
start_link = security.get_start_link()
            if start_link:
                self.kwargs['link'] = start_link
                return self.init()



RE: can i change this login screen for common user/artist ? - fxside - 04-07-2020

thanks a lot for that really worked.

Can you also please help me in even switching off the tactic project window not coming and directly task page should come.

[Image: rfpQJkxm.jpg]

[Image: cG6vCM8m.jpg]


RE: can i change this login screen for common user/artist ? - lwinmoe - 01-18-2021

Hi,

The question comes down to what you want to see at the root URL, http://yourdomain.com/

Based on my understanding, you probably have two options:

1) you can choose to direct to a default project

If there is only one project, you can make it jump to that one using the default_project setting. In this case, the user will be redirected to http://yourdomain.com/xyz (xyz being the default project name)

/opt/tactic/tactic_data/config/tactic-conf.xml


Code:
<install>
    ...
    ...
    <default_project>xyz</default_project>
    ...
    ...

</install>


2) a separate project with custom view

You can create a separate project with a custom view that the user will see when going to the root URL.

If you want the user to see nothing, you can just create an empty project with a blank page or a company logo. Keep in mind that this would make the root URL basically do nothing.

Hope this helps.


RE: can i change this login screen for common user/artist ? - Diego - 03-18-2021

For future reference I wanted to note that 4.8 uses tactic.ui.panel.HashPanelWdg to get the view from start_link as an "widget hash" and you have to prepend "/tab/" to it.

In the example made by @lwinmoe the start_link becomes"/tab/my_tasks"