close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

access rules

Thread began 9/30/2019 8:31 am by Jamie | Last modified 10/04/2019 9:09 pm by Ray Borduin | 381 views | 4 replies |

Jamie

access rules

Hi Ray

Am using the pcms2_users table to store backend logins as well as front end member logins.

At the moment, if the user needs access to both front end and back end access, they have to have a separate email login for each and am wondering how I combine so that one login would give access to the relevant people

The backend is accessible only by Admin (UserGroupID=1), Publisher (UserGroupID=11) or Editor (UserGroupID=10)

The front end, at the moment, is only accessible to Members (UserGroupID=12) that are UserActive = 1

Am not sure how I would go about adjusting for this in the SA rules?

Have attached the helpergroupsrulesphp.php file as well as site def if you need it

Cheers

Sign in to reply to this post

Ray BorduinWebAssist

I don't really understand the question. Are you trying to update your members access rule to allow any user (admin or member)?

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

yes it was the member access rule and have managed to figure it out.

on the same site the login page for the backend (attached) shows a failed login message (line 152) which works fine but I want to have an alternative message show if the user is a 'Members Only' tries to login but their UserGroupID = 12 and would show the message at line 155 instead

thanks

Sign in to reply to this post

Ray BorduinWebAssist

I think you could just use:

if (isset($_SESSION["UserGroupID"]) && $_SESSION["UserGroupID"] == 12)

Sign in to reply to this post
Did this help? Tips are appreciated...

Jamie

yup thats great Ray Many thanks

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...