openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f833e97ee04c26041d45df0acef2b21f491d04b3
parent 41447f286dceb353016bb60df8961ea468b4227f
Author: dankert <devnull@localhost>
Date:   Sun, 28 Nov 2004 17:56:04 +0100

in hasRight() auch Abfrage des Parent-Ordners

Diffstat:
objectClasses/Object.class.php | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/objectClasses/Object.class.php b/objectClasses/Object.class.php @@ -20,7 +20,10 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ -// Revision 1.5 2004-11-24 22:06:24 dankert +// Revision 1.6 2004-11-28 16:56:04 dankert +// in hasRight() auch Abfrage des Parent-Ordners +// +// Revision 1.5 2004/11/24 22:06:24 dankert // Neu: setDatabaseRow() zur Performancesteigerung // // Revision 1.4 2004/11/15 21:34:44 dankert @@ -257,7 +260,7 @@ class Object function hasRight( $type ) { $user = Session::getUser(); - return $user->hasRight( $this->objectid,$type ); + return $user->hasRight( $this->objectid,$type ) || (isset($this->parentid)&&$user->hasRight($this->parentid,$type)&&$user->hasRight($this->parentid,ACL_TRANSMIT)); }