Changed rules for permissions