Re: Queries that return permissions
От | Christopher Kings-Lynne |
---|---|
Тема | Re: Queries that return permissions |
Дата | |
Msg-id | 402DA04D.3080703@familyhealth.com.au обсуждение исходный текст |
Ответ на | Queries that return permissions (Thom Dyson <TDyson@sybex.com>) |
Список | 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
В списке pgsql-php по дате отправления: