[CWB] WG: Generate default privileges
Uhrig, Peter
peter.uhrig at fau.de
Sun Apr 11 22:37:57 CEST 2021
Dear all,
since Scott is not a member of the list, I’m forwarding his patch.
Best wishes,
Peter
Von: Scott Hale <scott.hale at oii.ox.ac.uk>
Gesendet: Sonntag, 11. April 2021 22:27
An: Uhrig, Peter <peter.uhrig at fau.de>
Cc: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Betreff: Re: [CWB] Generate default privileges
Here's the patch needed to fix the errant ` that is causing the error
--- corpus-lib.orig.php 2021-04-11 20:23:03.220409590 +0000
+++ corpus-lib.php 2021-04-11 20:23:59.748769261 +0000
@@ -210,7 +210,7 @@
function list_corpora(bool $system_only = true) : array
{
$where = $system_only ? ' where `owner` IS NULL ' : '' ;
- return list_sql_values("select corpus from corpus_info $where` order by corpus asc");
+ return list_sql_values("select corpus from corpus_info $where order by corpus asc");
}
On Sun, Apr 11, 2021 at 2:52 PM Uhrig, Peter <peter.uhrig at fau.de<mailto:peter.uhrig at fau.de>> wrote:
> IT should be right where it used to be, at the bottom of /adm/index.php?ui=privilegeAdmin
> There is more stuff between the top of the page and this control than there used to be … but nothing else has changed.
No, there is an SQL error instead (see screenshot below):
Tested on two machines, one with the latest revision (1639).
Best wishes,
Peter
[cid:178c29bd81f4cff311]
Von: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>> Im Auftrag von Hardie, Andrew
Gesendet: Sonntag, 28. Februar 2021 23:27
An: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>
Betreff: Re: [CWB] Generate default privileges
IT should be right where it used to be, at the bottom of /adm/index.php?ui=privilegeAdmin
There is more stuff between the top of the page and this control than there used to be … but nothing else has changed.
best
Andrew.
From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>> On Behalf Of mansur
Sent: 26 February 2021 13:38
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>
Subject: [CWB] Generate default privileges
Hi!
I use the latest trunk version (1587).
I remember in earlier revisions there was an option (button) for generating the list of default privileges, but I can't find it now. Was it removed or just a bug?
With best wishes,
Mansur
--
Dr Scott A. Hale
Associate Professor and Senior Research Fellow,
Co-Director of the International Multimodal Communication Centre
Programme Co-Director of the MSc in Social Data Science
Oxford Internet Institute, University of Oxford
SCR Member, St Antony's College, Oxford
Turing Fellow, Alan Turing Institute
http://scott.hale.us/
scott.hale at oii.ox.ac.uk<mailto:scott.hale at oii.ox.ac.uk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210411/caecae02/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 151254 bytes
Desc: image001.png
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210411/caecae02/attachment-0001.png>
More information about the CWB
mailing list