close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Restricting access to page using Two rules

Thread began 6/27/2011 3:44 pm by kevin389160 | Last modified 6/28/2011 9:08 am by kevin389160 | 1537 views | 4 replies |

kevin389160

Restricting access to page using Two rules

I am using SecurityAssist 1.1.9 and I would like to know if I can put to different page access rules on a page.

For example I'm building a website for an English school and the way that the internal database for the school is setup I have to have the login for different users using different table in the database. With this I had to Run the SecurityAssist wizard a couple of time for the different users. That all work fine. But I want to restrict access to a page, but I want both logins to work on this page. If I just put a rule on the page for both users in doesn't allow ether user to access. What can I do to allow both user to access the page?

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to hand edit the access restriction to use both rules,


for example:


<?php
if (!WA_Auth_RulePasses("Rule1") || !WA_Auth_RulePasses("Rule2")){
WA_Auth_RestrictAccess("users_LogIn.php");
}
?>

Sign in to reply to this post

kevin389160

So if I hand code it the way that you showed in the example, I code add as many rules as I want.

Is that correct?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is correct.

Sign in to reply to this post

kevin389160

Thanks for your help.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...