improve the performance of check_repo_access_permission
improve the performance of check_repo_access_permission

Reduce unnecessary database reads

madflow/seahub,madflow/seahub,madflow/seahub,madflow/seahub,madflow/seahub,miurahr/seahub,miurahr/seahub,miurahr/seahub,miurahr/seahub