Restrict Access to certain users based on if a variable in the SQL database is set to 1

Hey guys,
I am quite new to PHP and MySQL and I have a question concerning access  restriction. For a website project I am experimenting with Dreamweaver's  login and restrict access behavior, which works fine. However, on the  website I would like to restrict access for users that only have a 1 set  in the corresponding MySQL database (which means that e.g. each page has a different variable in the database that can be set to 1, which would allow me to personify access beyond the level of the out-of-the box option, where each user can only have one access level). So it is quite similiar to the  out-of-the-box restrict access to page based on user group, but just  depending on another variable in the database.
I guess it can be done with an if condition that checks in the database if the logged in user has a 1 in this variable, and if yes give her/him access if not redirect to another page. However, I could not figure out  how to implement that.
Your help is highly appreciated!
Thanks in advance!

Hello guys,
I spend quite some time on the internet reseaching my wish and redefined my need: I would basically like to have the possibility to assign a user multiple access levels. There would be e.g. 10 pages for each I create an access level. Then a user with e.g. access to pages 2 and 8 can only access these two pages. So my basic question is if and if yes how I can assign a user muliple access levels at a time and store these values in the MySQL database.
Thanks a lot for your help!!

Similar Messages

  • Restrict access of "domain user" to specific computer

    I need to restrict access of "domain user" to a specific computer in the domain/
    I try to Do it by using "Active Directory Administrative Center"
    In Computers\Computer name\Properties\Extensions\Security
    I add the name of user and I marked deny to all and I canceled inheritance
    And yet the user can login to the computer
    I searched Policy that contradicts the security and I not found.
    With the "gpo" I was able to block, but I need necessarily used the Security
    Because of Security can be partial restriction.

    Hi,
    Based on your description, I understand that you want to allow some certain users to access specific domain
    computers.
    Please open ADUC (Activity Directory Users and Computers) and click User container. Then select that specific
    user account, open its Properties and navigate to Account tab. Please click
    “Log On To…” option to open Logon Workstations panel. In Logon Workstations panel, please change
    This user can log on to: All computers to The following computers. Then type the specific computer names. Please check if this can help you to achieve target.
    If anything I misunderstand or any update, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Restricting  Access for SQ01 User Group

    Hi ,
    Please let me how to Restrict  Access for a   User Group  to only some of  the specific users?
    Thank you
    Edited by: Vibhor Arora on Apr 12, 2010 7:29 AM

    Hi,
    Can you please clarify what exactly you want to know, your request can be interpreted in a few different ways.
    If you are concerned that people have access to all user groups, then you need to remove access to S_QUERY activity 02 and I think activity 23.  They will lose access to all user groups that they are not assigned to via SQ03.

  • How to access the sql database in applet?

    How to access the sql database in applet?
    Please help me.

    import java.applet.*;
    import java.awl.*;
    import java.sql.*;
    //other packages
    public class jdb extends Applet
    Connection con;
    Statement stmt;
    String name="drvijay";
    String phoneno="9842088860";
    public void init(){}
    pubilc void stop(){}
    public void destroy(){}
    public void start()
    call();
    public void call()
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              conn=DriverManager.getConnection("Jdbc:Odbc:emp","sa","");
              stmt=conn.createStatement();
              stmt.executeUpdate("insert into empdetails(name,phoneno) values ('"+name + "',''"+ phoneno +"' )" );
              }catch(SQLException e)
                   System.out.println("error"+e);
                   System.exit(0);
    //<applet code="jdb" height="200" width="200"> </applet>
    u this jdbc statement in any of the method..
    */

  • File Sharing with user on MacBook Pro, restrict access to certain folders

    I work on my iMac mostly and have 3 external drives hooked into the iMac. I have file sharing turned on because I want to be able to access these external drives on my macbook pro. I can get into all my drives as planned. However, I have a user on the macbook where I want to restrict them from seeing certain folders on those external drives.
    For instance, I have budget documents in a folder on one of those drives along with family photos in another folder. I want this user to be able to access the folder of fam photos but not access the folder of my budget docs. How do I do this?
    I tried "get info" on that specific folder and selected the "write only (drop box)" option and that doesn't work, that user can still open and see all the budget docs. I believe I've even tried removing them from that folder on the "get info" box. Either way, that folder is still accessible for all.
    Please help!!!!!!!

    Response appreciated but the easiest way to handle the problem, is being able to restrict 2 or 3 folders which is what I can't figure out how to do. Maybe there is no way to do this. I have spent a good deal of time organizing the folders in the first place, and with some of these things being related to my business, it would be more of a headache and major issue, to reorganize these folders. Things are very well organized, I just don't want certain users to have access to a couple of the folders as those certain folders have income related and budget related information.
    So my issue is really, not about re-organizing or any of that, but merely, how to I set a folder to where a certain user doesn't have access to that certain folder.
    You wouldn't think that would be too difficult, but then again, maybe it is just something that can't be done. I would think it'd be as easy as opening the "get info" on that certain folder, selecting that user and setting it to say "no access" - however, that is not an option in the drop down and I don't know why. It offers, read & write, read only, write only (drop box). Even when I select write only, it still allows that user to see all my files in that folder and access them. So I'm just not sure why "no access" is not listed there as an option.
    Thanks.

  • Restricting access to certain volumes

    I have an external firewire drive mounted with three partitions. How do I make it so that only a certain user has access to each partition. For example,
    User A logs in, and volume A' is mounted, but B' and C' are not mounted;
    User B logs in, and volume B' is mounted, but A' and C' are not mounted; and
    User C logs in, and volume C' is mounted, but A' and B' are not mounted.
    My guess is that I will have to make some changes in NetInfo.
    Any tips?

    Sorry
    In the previous msg I mistyped
    You can use the "mdutil" command.
    mdutil is diskutil
    Anyway, it looks that, a shell script as an element of loging doesn't work.
    But,
    it works with an apple script.
    You must save the script as an application unchecking the prompt screen checkbox.
    Open Script Editor application and cut and paste this code
    tell application "Finder"
    do shell script "diskutil unmount /Volumes/UserB"
    do shell script "diskutil unmount /Volumes/UserC"
    end tell
    At login the finder freeze for a few seconds but at the end you have just one volume mounted on the Desktop.
    Alberto

  • How to restrict data for certain users (brokers) in CRM

    Hi Team,
    We need to restrict brokers on their ability to 'see' and create trade promotions for only a given set of customers.
    Example:
    Broker Joe Smith can only see through t-code BP 3 customers, even though their are 10 customers created in the CRM system.
    Same goes for the t-code CRM_MKTPL (trade promotions), how do we restrict Joe Smith from creating promotions for only those 3 customer and not the other 7 customers?
    Any help is appreciated.
    Has anyone restricted any transaction like this before?
    Does it need ABAP programming? or does it need additional security roles?
    Thanks,

    The access control engine in CRM, is probably your best bet for this option.  I have not used it, but we did evaluate the use of the product.  I know this product works in BP, but I have not looked to see whether it hooks in CRM_MKTPL.
    Do a search on ACE in this forums or in the CRM help documentation.  Try this link for some basic information
    http://help.sap.com/saphelp_crm40sr1/helpdata/en/a9/04c42a9e207545b47a32d1d05f53c3/frameset.htm
    Good luck,
    Stephen

  • How do I restrict access to certain websites in Firefox?

    I need to restrict the below website that maybe a virus. It keeps making itself my homepage and loading as a trusted site even though I never set it up. It did the same thing in Internet Explorer browser. However, there I was able to restrict access. How do I want to restrict access in Firefox?
    http://search.bearshare.net/

    '''[https://addons.mozilla.org/en-US/firefox/addon/blocksite/ BlockSite]''' {web link}
    BlockSite is an extension, which automagically blocks websites
    of your choice. Additionally, this extension will disable all
    hyperlinks to these websites, by just displaying the link text
    without the clicking functionality.
    edit: cleaned up link

  • How to prevent certain Users from deleting a resource while in the project?

    We are currently using P6.2 client; We are setting up a new resource dictionary and have been searching to find a way to prevent certain users from deleting resources while in the project. Is there a way to do that? I have created Global profiles and Project profiles under the Admin security profile and have tried clicking off of rights to delete a resource but when I log into as that user I can still delete the resource. Please Help!

    Are you talking about preventing users from deleting resource assignments within a project? Or preventing them from deleting resources from the global resource dictionary?
    For global resource dictionary in Global Profile you would turn off:
    -Delete Resources
    And likely:
    -Add resources
    -Edit Resources
    -Edit Roles
    -Edit Resource Calendars
    For resource assignments on activities in Project Profiles you would turn off:
    -Add/Edit Project Activities Except Relationship
    Note: this will disable more then just the ability to alter resource assignments.

  • Get data in a subreport based on a shared variable from the main report.

    Goodd morning,
    My question/problem is how to manage this scenario.
    I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now  i would like to get data in this subreport based on these 2 variables...
    The problem is that i can not find the shared one in select expert icon...
    Could anyone point me to solve this issue?
    Thks for any help.
    Jose Marin
    Crystal Report XI SR3

    Hello Jos,
    I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
    This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • How do you restrict access to certain apps via the use of Time Restrictions?

    Is there anyway to limit the use of certain apps to a time period of the day? I know the time restrictions on this site ONLY pertain to texting and calls, but not email or any other app, such as Twitter or Facebook, etc.

    Well, there are a few different ways to go about it. You could add a preferences page with the admin functionality, and then an admin would just have to click the little pencil in the portlet titlebar. No admin/edit access, no little pencil.
    I have often set the visibility of an ASPX control directly from activity rights, in OnPageLoad, if it isn't postback time. The activity rights should be inherited by the user, through the user's group. Best practise is to create empty groups called Roles, add activity rights to the Roles, and then have the actual groups (that contain users) inherit from one or more Roles.
    You already knew that part, I added it for the others. My personal definition of a portlet is 'polymorphous instance of a web service'.
    So:
    Role: Store Manager (has Edit Shopping Cart activity right)
    ^
    Group: Store Managers (has Store Manager parent group)
    User: Vladimir (inherits Edit Shopping Cart activity right)

  • Restricting access to certain plants - any suggestions welcome

    Hi,
    I have been asked to create a small number of new plants for our business which are only to be viewed by a small number of people. Now the plants will have the same initial letter as a number of existing plants (this can't be changed).
    For example, the new plants might be AB01, AB02. The existing plants are A001, A002, A003.
    Many of our authorisations at plant level reference this first letter:
    i.e. The user can see all the plants beginning with the letter A*.
    Can anyone think of a way whereby I can restrict the access to the new plants without having to change all the existing authorisations?
    Thanks,
    Steph.

    Without authorization you can go for customized developement,
    search for standard user exit & take help of abaper to complete it.

  • Workset validation and restricted access to other workset based on first

    Hi All,
        I have a requirement in which I need to allow other worksets in ESS to be accessed only if one workset "Personal Information" is completed.
    in this workset, there is an iView "Certify Own Data". In this ivew there are couple of checkboxes which need to be ticked and saved. this checkboxes will automatically be checked when the user enters required data in other related ivews such as "Address", "Family Details", "communications" etc.
    Please someone suggest me how to achive this functionality. Do i need to develop new application or i can achieve this functionality by just maintaining some kind of  iview validation.
    Earlier response would be much appreciated.
    Thanks
    Uday

    HI
    In your case,If your users are limited users then no worries....
    They cannot open it with their license...
    Only "Super user" can do that....
    OR
    You can restrict the other users by giving 'Authorisations'.
    Goto Administration -> system initialisation ->Authorisation_>General Authorisation.
    Now you select the users to whom you want to restrict the access and at right hand side you can see "Customization tools"
    You can set as "No authorisation" for Customization tools for that particular user and update it...
    So that he cannot do anything with the user defined windows
    Edited by: kambadasan on May 25, 2011 2:21 PM

  • Restricted Access in Compensation Workbench based on Security Profile

    Customer does not want the HR Professional to access at other team's data even when using Switch Manager in the below scenario.
    1) 2 CWB Plans (CWB Plan for A, CWB Plan for B) are built based on Supervisor Hierarchy. Each of the CWB plan is for a set of organisations for e.g a plan for Organisation 'A' and another for Organisation 'B'.
    2) HR Professionals have a security Profile which restricts them to view employees in either 'A or 'B' organisation.
    3) Switch Manager is enabled for the 'Compensation Workbench Administrator'
    4) There exists a common manager who manages people from 'A' and from 'B'
    5) When HR Professional (who is in the A organisation) switches as the Manager in point (4), he gets to see the details of the 'CWB Plan for B' along with the 'CWB Plan for A' even though the people in the B plan are not part of the HR Professional's security Profile

    Hi,
    Thanks alot. its working fine
    Can we configure DCL Relation two times in one information filed ??? i should not create not more than fields to this requirement.
    Type -> subtype = DCL already existed
    Now, i want to Create DCL to
    Subtype ---> Security group
    As per my requirement, if i change the security group in checkin form, values should be change in the SubType drop down list.
    Created checkin profile there was DCL relation to " Type and "Sub Type" . now i want to map Relation ( DCL ) for subtype to security group.
    i was trying do for DCL for subtype and security group. but there was already existing DCL created for subtype information field (Relation configuration done for content type). even though i was trying to do for DCL in Security group information field. but, i could not find security group information field in configuration manager.
    Now what should i do ?? how to create DCL to subtype and security group ??
    Help would be appreciated.
    yt

  • Samba - disabling access for certain users on domain member servers

    Hi all!
    I'm running a small network that has domain logons for windows clients and I want to have single sign on (samba shares and shell accounts) on those three servers I'm running. The problem is, I don't want to allow all users to access all servers.
    I have the samba running tdbsam password backend. Do I have to use ldap backend to achieve this or is it possible to do using tdbsam backend? I'd prefer to have all configuration concerning windows domain and passwords in one place...
    Tomato

    Hi LMS,
    I’m writing to just check in to see if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

Maybe you are looking for