kendraio / kendra_home

Kendra Home
https://www.kendra.io
GNU General Public License v2.0
2 stars 2 forks source link

Don't show add organisation button when not logged in #47

Closed dahacouk closed 9 years ago

dahacouk commented 9 years ago

Don't show add organisation button when not logged in as in https://www.kendra.io/users/dahacouk

window_and_sabine_jacques___kendra_initiative

iAugur commented 9 years ago

The button is in the views footer I have wrapped it in php to check if the user is authenticated.

<?php
global $user;
if ($user->uid)  {
$straddorg = '<div class="pull-right col-sm-6"><a href = "/user/!1/add-org" role="button" class="btn btn-success"><span class="glyphicon glyphicon-plus"></span>Add organisation</a></div>';
print $straddorg;
}
iAugur commented 9 years ago

this is now live - close if happy

dahacouk commented 9 years ago

Thanks!