Home › Forums › Front-end Issues › custom role can\'t upload files › Reply To: custom role can\'t upload files
i found my problem, it was because i restrict admin area to my agency role with this :
function restrict_access_administration(){
if ( current_user_can(‘agency’) ) {
wp_redirect( get_bloginfo(‘url’) );
exit();
}
}
how can i restrict admin area without disturb front upload media please ?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.