Created User->canCreatePosts method

This commit is contained in:
Pierre
2018-01-06 18:26:02 +01:00
parent e4343b0ef4
commit 5a4918db39
2 changed files with 31 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class userController
//If it is his page, yes by default
userID == $userID ? TRUE :
//Else check friendship status
CS::get()->components->friends->can_post_text(userID, $userID);
CS::get()->components->user->canCreatePosts(userID, $userID);
}
//Return user informations