Changeset 509

Show
Ignore:
Timestamp:
05/12/08 15:10:17 (5 years ago)
Author:
d0nut
Message:

new feature: privileges are checked in memberslistpage

Location:
profileaccessmatrix
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • profileaccessmatrix/eventlistener.xml

    r507 r509  
    1414                        <listenerclassfile>lib/system/event/listener/ProfileAccessMatrixUserSearchFormListener.class.php</listenerclassfile> 
    1515                </eventlistener> 
     16                <eventlistener> 
     17                        <eventclassname>MembersListPage</eventclassname> 
     18                        <eventname>readData</eventname> 
     19                        <inherit>1</inherit> 
     20                        <listenerclassfile>lib/system/event/listener/ProfileAccessMatrixMembersListPageListener.class.php</listenerclassfile> 
     21                </eventlistener> 
    1622        </import> 
    1723</data> 
  • profileaccessmatrix/files/lib/system/event/listener/ProfileAccessMatrixUserSearchFormListener.class.php

    r507 r509  
    8484 
    8585                $matrix = WCF::getCache()->get('profileaccessmatrix'); 
    86                  
     86                $check = $this->accessibleGroups($matrix); 
     87 
    8788                foreach ($this->eventObj->activeOptions as $name => $option) { 
    8889                        if(isset($this->eventObj->values[$option['optionName']])) { 
    89                                 $value = $this->eventObj->values[$option['optionName']]; 
    90                                 $check = $this->accessibleGroups($matrix, $option['optionID']); 
     90                                $value = $this->eventObj->values[$option['optionName']];                                 
    9191                                $condition = $this->getTypeObject($option['optionType'])->getCondition($option, $value, isset($this->matchExactly[$name])); 
    9292                                if ($condition !== false) { 
  • profileaccessmatrix/package.xml

    r507 r509  
    66                <packagedescription>Admin can grant permissions to view the profile of specific usergroups for each usergroup.</packagedescription> 
    77                <packagedescription language="de">Der Administrator kann die Sichtbarkeit der Profile in einer Rechte-­Matrix fÃŒr jede Benutzergruppe so einstellen, wie eine andere Benutzergruppen lesend Zugriff hat.</packagedescription> 
    8                 <version>1.0.0</version> 
     8                <version>1.1.0</version> 
    99                <plugin>com.woltlab.wcf</plugin> 
    1010                <isunique>1</isunique> 
     
    3333        </instructions> 
    3434 
    35         <instructions type="update" fromversion="0.0.1"> 
     35        <instructions type="update" fromversion="1.0.0"> 
    3636                <files>files.tar</files> 
     37                <eventlistener>eventlistener.xml</eventlistener> 
    3738        </instructions> 
    3839</package>