i wanted to test node_access so i created a user without access content permission

but it seamed that user_access('access content', $account) returned TRUE.

so it wrote a patch which creates a test of user_access

i have to do something wrong

CommentFileSizeAuthor
user_access_unexpect.patch1.07 KBdawehner

Comments

dawehner’s picture

even user_access('access content', $no_access, TRUE) returns TRUE

dawehner’s picture

Status: Needs review » Closed (fixed)

ok it seems that every user is authenticated and every authenticated user has access content by default on a fresh test