Changeset 298

Show
Ignore:
Timestamp:
04/21/08 21:33:44 (7 months ago)
Author:
rho
Message:

[shouts] last time fixes
* fixed permissions check on shout reply
* clear displaying replies on keyword template

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • shouts/releases/0.1/lib/shouts_actions.php

    r295 r298  
    3535        } 
    3636        // check if user is loggedin, have access and shout parent exists 
    37         if (isloggedin() && !empty($shout->content) && permissions_check('profile', $page_owner)) { 
     37        if (isloggedin() && !empty($shout->content) && 
     38            ($type_shout == 'reply' || 
     39            permissions_check('profile', $page_owner))) { 
    3840            $shout->posted = time(); 
    3941            $shout->owner = $USER->ident; 
  • shouts/releases/0.1/templates/shout_post_keyword.html

    r295 r298  
    1010            </div> 
    1111            {{content}} 
    12         </div> 
    13         <div class="shout-reply"> 
    14             {{replies}} 
    1512        </div> 
    1613        <div class="clearing"></div> 
  • shouts/trunk/lib/shouts_actions.php

    r295 r298  
    3535        } 
    3636        // check if user is loggedin, have access and shout parent exists 
    37         if (isloggedin() && !empty($shout->content) && permissions_check('profile', $page_owner)) { 
     37        if (isloggedin() && !empty($shout->content) && 
     38            ($type_shout == 'reply' || 
     39            permissions_check('profile', $page_owner))) { 
    3840            $shout->posted = time(); 
    3941            $shout->owner = $USER->ident; 
  • shouts/trunk/templates/shout_post_keyword.html

    r295 r298  
    1010            </div> 
    1111            {{content}} 
    12         </div> 
    13         <div class="shout-reply"> 
    14             {{replies}} 
    1512        </div> 
    1613        <div class="clearing"></div>