Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error : JUser tryAuthorise does not exists #4723

Merged
merged 1 commit into from
Oct 7, 2016
Merged

Conversation

obsidev
Copy link
Contributor

@obsidev obsidev commented Oct 7, 2016

Summary of Changes

There is no "tryAuthorise" function for the JUser class but there is one in the Kunena category.
Regarding the parameters, it looks like it was designed to be the call to the JUser authorise function.

Testing Instructions

With an account, edit a Kunena category.
With another account, go in the category listing, in a page where you can see the category under edition.

There is no "tryAuthorise" function for the JUser class but there is one in the Kunena category.
Regarding the parameters, it looks like it was designed to be the call to the JUser authorise function.
@810
Copy link
Member

810 commented Oct 7, 2016

@obsidev
Copy link
Contributor Author

obsidev commented Oct 7, 2016

Okay, Kunena User also have tryAuthorise. But the " $this->user " in the view IS a Joomla user object.

It is used like that in other lines in the view. Like:
https://github.com/Kunena/Kunena-Forum/blob/K5.0/src/administrator/components/com_kunena/template/categories/default.php#L205

You just have to do the described test and you will have the same fatal error I had ; error which have this PR as result.

@810 810 added this to the 5.0.3 milestone Oct 7, 2016
@810
Copy link
Member

810 commented Oct 7, 2016

you are right, will merge it.

@810 810 merged commit cd54c53 into Kunena:K5.0 Oct 7, 2016
810 pushed a commit to 810/Kunena-Forum that referenced this pull request Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants