There are two ways to assign permissions, the first of which is to assign permissions based on departmental positions, and the second is to assign permissions based on roles;
Fr comes with three JQ objects to hold user name parameters/role Parameters/departmental Parameters--$fr _username/$fr _authority/$fr _userposition
according to department position :
To enter the platform as an administrator, open the Rights Assignment module (do not forget to save the edits after the assignment is over):
Show effects after clicking Save (because no roles are defined according to department assignments):
Based on Role assignment:
Define the role first, then specify the object for the role
Finally, assign permissions to the role:
The display results are as follows:
Customize home page:
The first is to create a new homepage or use the default home page
Then define the URL and specify user permissions for the page you created:
Get User name:
Although FR does not provide an object to get a user name, it can be queried by the unique value of the login name:
SQL ("frdemo","select EmpName from Dict_employee where loginname= '" + $fr _username+"'",1,1)
finereport--permissions assignment and customizing the home page