R
ragtek
Guest
Hi,
i hadn't seen any add-on which checks the permissions
ATM I'm reading ALL threads and then sort them out with the search model (like it's happening with the what's new page)
that's IMHO extremly ugly because it's much overhead and i don't know how many elements i'll get back, so it's imposible to use this with pagination.
i've searched the code and i saw that i could maybe use the getNodePermissionsForPermissionCombination method but i hadn't time to check this.
Anybody knows how to get a "string" containing all the node Ids which the current user is allowed to see?
i hadn't seen any add-on which checks the permissions

ATM I'm reading ALL threads and then sort them out with the search model (like it's happening with the what's new page)
PHP:
$results = $searchModel->getViewableSearchResults($results);
$results = $searchModel->getSearchResultsForDisplay($results);
i've searched the code and i saw that i could maybe use the getNodePermissionsForPermissionCombination method but i hadn't time to check this.
Anybody knows how to get a "string" containing all the node Ids which the current user is allowed to see?