Keyword

Need help with $user->profile->addLink

  • Toshihir
  • Toshihir's Avatar Topic Author
  • Offline
  • New Member
More
14 years 1 month ago #86398 by Toshihir
Need help with $user->profile->addLink was created by Toshihir
Not sure if this is a bug but even if I am a Super-Admin, assigned to group which is allowed to add items from frontend, cannot see "Add new Item" link because 2nd part of condition if(is_object($user->profile) &&  isset($user->profile->addLink)) is wrong at my account. $user->profile->addLink is not set. Which setting makes this particular property to be set?There's an issue that another Super-Admin with the same settings can post items without any troubles.Please helpThank you

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #86399 by Jiliko.net
Replied by Jiliko.net on topic Need help with $user->profile->addLink
Hi Toshihir,

$user->profile->addLink is set if the function K2HelperPermissions::canAddItem() returns true.
This function is declared in the file 'components/com_k2/helpers/permissions.php', line 249.

Olivier

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum