static and dynamic permissions November 20, 2020, 05:38:15 AM Good day I have been looking to find more information that well explains the difference between static and dynamic ... roles.Can someone please explain how do they work, and in what situation would I use either? Quote Selected
Re: static and dynamic permissions Reply #1 – November 20, 2020, 01:31:20 PM @dra static role is stored on a PHP file while dynamic roles are store in the database. Dynamic roles can easily be changed by editing the role table like you will do a normal record and it takes effect immediately, which makes it dynamic. While static code will require you to edit it from the phprad classic app or edit the .php file where it was generated to make changes. Quote Selected
Re: static and dynamic permissions Reply #2 – November 20, 2020, 09:40:01 PM Thanks. I set up the dynamic role permissions tables. after selecting the role base access control user roles and tables. I clicked the OK button and got the following alert:- "The SELECT permission was denied on the object 'UserTypes', database 'test', schema 'dbo'."where do I go from here. I would show you screen shots of my setup but the forum alert says that the upload file is full. Quote Selected
Re: static and dynamic permissions Reply #3 – November 20, 2020, 10:08:04 PM @dra your explanation is not clear enough, please provide more info. Quote Selected
Re: static and dynamic permissions Reply #4 – November 21, 2020, 12:06:45 PM @dra does UserTypes database table and UserTypeId users table column, exist in your database? Quote Selected
Re: static and dynamic permissions Reply #5 – November 22, 2020, 05:11:24 PM @willvin Solved. I had to alter the User permissions on the database.Thanks for your assistance. Quote Selected
Re: static and dynamic permissions Reply #6 – November 22, 2020, 07:41:16 PM @willvin When I click OK after selecting page permission check boxes. I notice that the RolesPermissions data table is not updated, i.e the PermissionId, PageName and ActionName are empty, no data. I ran a trace using SQL server trace tool on the click action. I can see select statements made against the database but no table inserts are made in the RolesPermissions table also no alerts orerrors are given. Any Ideas? Quote Selected
Re: static and dynamic permissions Reply #7 – November 24, 2020, 09:50:00 AM @dra I will require your TeamViewer details to assist you better. Send me a PM with the details. Quote Selected