This topic is locked

add function for specific users only

6/26/2004 7:50:20 PM
ASPRunnerPro General questions
hanb author

I have set the edit options for users to only edit own record and see all others.

However I also want to restrict the add command to the control user only, leaving it out, I cant add, leaving add in, everybody can add.

How to restrict add to control user only, or to a couple of specific users.
How do I generate programs for both of the tables in the database, 2nd one is a pasword/username table, and can I restrict users to see one table and the other not?

Sergey Kornilov admin 6/27/2004

Hi,
I guess you need to implement custom group-based security to assign permissions to the whole group of users. Currently you cannot do this with ASPRunner.

hanb author 6/27/2004

How do I generate programs for both of the tables in the database, 2nd one is a pasword/username table, and can I restrict users to see one table and the other not?



Sergey,

The above described feature is supposed to be the pro version, i am running the trial version, which says is the pro version, but i dont see any possibility to handle two tables and create a menu structure. When i buy the pro version will i see a different program then?

Han

hanb author 6/27/2004

I have set the edit options for users to only edit own record and see all others.

However I also want to restrict the add command to the control user only, leaving it out, I cant add, leaving add in, everybody can add.

How to restrict add to control user only, or to a couple of specific users.



Regarding the add command, is it difficult to change the code from the edit routine to be an add routine,(or take the coding for the add out of the programs) and run it as a seperate program initiated by the startmenu?

Then recompile the programs without the add and voila it is seperated.

Or is this to easy thinking, will i get into trouble when i have to change programs later.

Sergey Kornilov admin 6/27/2004

You need to proceed to Datasource tables screen in ASPRunnerPro and check off both tables on the left. Menu page will be created automatically if you choose more than one table.
Also I can recommend you to build two separate set of pages for regular users and for admins. This way you can easily separate features like edit and add.