Skip to content

Authorization problem#6

Merged
thite-amol merged 2 commits intotechjoomla:masterfrom
sanjivani1812:bugfix
Sep 3, 2018
Merged

Authorization problem#6
thite-amol merged 2 commits intotechjoomla:masterfrom
sanjivani1812:bugfix

Conversation

@sanjivani1812
Copy link
Contributor

Some function parameter issues

@coolbung
Copy link
Member

What parameter issues are you facing ?

@sanjivani1812
Copy link
Contributor Author

client id is not passed to check function and loadActionByCode function client and action are typecast.

* @since __DEPLOY_VERSION__
*/
public static function loadActionByCode(String $code, String $client)
public static function loadActionByCode($code, $client)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you remove the typecasting ? Do you see any integer only values of code or client ?

$result = $user->authorise($action, $client);

return $result && self::check($userId, $client, $action);
return $result && self::check($userId, $client, $action, $contentId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thite-amol you need to look at this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thite-amol - Please check this comments

@thite-amol thite-amol merged commit ab8920d into techjoomla:master Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants