Update of /cvsroot/basedb/basedb/include/classes
In directory sc8-pr-cvs1:/tmp/cvs-serv9122/include/classes
Modified Files:
bioassay.inc.php user.inc.php reporterlist.inc.php
Log Message:
fixed problems with isShared
Index: bioassay.inc.php
===================================================================
RCS file: /cvsroot/basedb/basedb/include/classes/bioassay.inc.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** bioassay.inc.php 12 Feb 2003 16:16:45 -0000 1.33
--- bioassay.inc.php 15 Feb 2003 12:38:39 -0000 1.34
***************
*** 1448,1451 ****
--- 1448,1456 ----
return $gDFPdata;
}
+
+ function isShared(&$user, $write = 0)
+ {
+ return Experiment::isSharedId($this->experiment, $user, $write);
+ }
}
Index: user.inc.php
===================================================================
RCS file: /cvsroot/basedb/basedb/include/classes/user.inc.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** user.inc.php 15 Feb 2003 11:29:07 -0000 1.25
--- user.inc.php 15 Feb 2003 12:38:40 -0000 1.26
***************
*** 265,269 ****
// Superusers can edit anyone, but cannot be edited by normal user admins.
! function isShared($user, $write = 0)
{
$acc = (int)$write;
--- 265,269 ----
// Superusers can edit anyone, but cannot be edited by normal user admins.
! function isShared(&$user, $write = 0)
{
$acc = (int)$write;
Index: reporterlist.inc.php
===================================================================
RCS file: /cvsroot/basedb/basedb/include/classes/reporterlist.inc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** reporterlist.inc.php 15 Feb 2003 11:29:07 -0000 1.12
--- reporterlist.inc.php 15 Feb 2003 12:38:40 -0000 1.13
***************
*** 389,393 ****
}
! function isShared($user, $write = 0)
{
return Experiment::isSharedId($this->experiment, $user, $write);
--- 389,393 ----
}
! function isShared(&$user, $write = 0)
{
return Experiment::isSharedId($this->experiment, $user, $write);
|