Re: Queries that return permissions

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Thom Dyson <TDyson(at)sybex(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: Queries that return permissions
Date: 2004-02-14 04:13:01
Message-ID: 402DA04D.3080703@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hi Thom,

Download phpPgAdmin (phppgadmin.sourceforge.net) and look at the
getPrivileges function in classes/database/Postgres.php.

Cheers,

Chris

Thom Dyson wrote:

>
>
>
> I'm laying the ground work to migrate a database to a web front end. One
> thing I would like is, when generating the HTML, to display read-only
> fields as text, while fields that are updateable as input fields, based on
> the permissions that the user has to the table. This way a given user
> would not be confused trying to change data they have no permission to.
>
> Does anyone know where there is code that will do this sort of thing?
>
> Thom Dyson
> Director of Information Services
> Sybex, Inc.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match

In response to

Browse pgsql-php by date

  From Date Subject
Next Message HOLMAN RODRIGUEZ 2004-02-14 20:21:48 help php-postgresql
Previous Message Thom Dyson 2004-02-13 18:21:52 Re: Queries that return permissions - D'OH