ijogold
Forum Replies Created
-
Indeed, it works!
I found a bug in adding and removing user rights at the same time! Thanks a lot!my code to remove exceptions for a user that doesn’t work
$argsdelite = array( 'operation' => 'read', 'mod_type' => 'additional', 'for_item_source' => 'post', 'for_item_type' => 'post', 'via_item_source' => 'post', 'item_id' => $post_id, ); $agentsdelite = array(); $agentsdelite['item'][ $prorabdeliteid ] = ''; ppc_assign_exceptions( $agentsdelite, 'user', $argsdelite );
hello, yes, I’m sure that the necessary data is transferred to $post_id and $prorabid…
my code for adding rights works great – but removing these rights does not work!
The function works for me at the time of publishing or editing a post
i tried like this:$agents['item'][ $prorabid ] = ''; ppc_assign_exceptions( $agents, 'user', $args );
and
$agents['item'][ $prorabid ] = 'false'; ppc_assign_exceptions( $agents, 'user', $args );
both ways don’t work =(
Do I understand correctly that you first added read permissions to the user using my code, and then removed them using your code that you wrote to me above?
please write me the full code you used to remove the user’s rights to read the post ?
@kevinb Look at my screenshot https://prnt.sc/aoZuGMBtfK7z …
I want to change the read post permissions for one of the usersAs a result, I want – so that it turns out https://prnt.sc/lMfz9KEfe1md
But your code in the answer doesn’t!
Hello, thank you, looking forward to
Can you answer me?
Great! Thank you!
i need get Specific Permissions (for user)
$argsss = array( 'agent_id' => $user_id, 'agent_type' => 'user', 'operation' => 'read', 'mod_type' => 'additional', 'for_item_source' => 'post', 'via_item_source' => 'term', 'item_id' => $post_id, 'assign_for' => 'item' ); $testpermposts = array(); $testpermposts = ppc_get_exceptions( $argsss ); echo '<pre>'; print_r($testpermposts); echo '</pre>';
I do this but it doesn’t work
here is the response i get
Array ( [read_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) [publish_topics_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) [publish_replies_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) [edit_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) [associate_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) [assign_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) [manage_post] => Array ( [post] => Array ( [] => Array ( [include] => Array ( [post] => Array ( ) [page] => Array ( ) ) [exclude] => Array ( [post] => Array ( ) [page] => Array ( ) ) [additional] => Array ( [post] => Array ( ) [page] => Array ( ) ) ) ) [term] => Array ( ) ) )
Forum: Plugins
In reply to: [AR Model Viewer] How to make AR work in google chromeand it doesn’t work at all on android