projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcfb203
)
Adjust permission check
author
Joey Schulze
<joey@infodrom.org>
Tue, 9 Mar 2010 08:05:36 +0000
(09:05 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Tue, 9 Mar 2010 08:05:36 +0000
(09:05 +0100)
lib/general.php
patch
|
blob
|
history
diff --git
a/lib/general.php
b/lib/general.php
index
8c95557
..
837a4b8
100644
(file)
--- a/
lib/general.php
+++ b/
lib/general.php
@@
-76,8
+76,8
@@
function check_session()
/* table connections */
if (substr($_SERVER["SCRIPT_FILENAME"],-25) == '/ricoUpdateConnection.php' &&
- !empty($_
POST['table'])
) {
- if (check_permissions(
$_POST['table']
))
+ !empty($_
GET['id']) && substr($_GET['id'],0,5) == 'grid_'
) {
+ if (check_permissions(
substr($_GET['id'],5)
))
return true;
else
format_ajax(array('error' => 'No permission to access data'));