GithubHelp home page GithubHelp logo

Comments (5)

bcampeau avatar bcampeau commented on August 26, 2024

Ad Layers is dependent on Fieldmanager for its admin area. Please ensure you are using the latest version from here: https://github.com/alleyinteractive/wordpress-fieldmanager

Ad Layers requires an update made to Fieldmanager in July 2015 for submenu pages, so it seems that you're running a quite old version.

from ad-layers.

onpubcom avatar onpubcom commented on August 26, 2024

Will do. Thanks for this info!

from ad-layers.

kala725 avatar kala725 commented on August 26, 2024

Hi @bcampeau : I am facing the same issue, although I have recent versions for both fieldmanager and ad-layers.

from ad-layers.

kala725 avatar kala725 commented on August 26, 2024

Hi @bcampeau : I have figured out the issue and it was in my code. However the error returned needs to be fine tuned.

It will happen when I limit the ad-layer access to some capability.

add_filter( 'register_post_type_args', function( $args, $post_type ) {
	if ( 'ad-layer' === $post_type ) {
		$args['capabilities'] = [
			'edit_posts' => 'manage_advertising',
			'edit_others_posts' => 'manage_advertising',
		];
	}
	return $args;
}, 10, 2 );

When the logged in user, doesn't have the capability, this error is returned, while trying to change the settings.

(Ideally if we hide all the options like server settings, then it can be avoided.) If there is other way of doing so, please let me know.

from ad-layers.

bcampeau avatar bcampeau commented on August 26, 2024

We'll take a look at it for the next version, but if you'd like to submit a pull request with a proposed solution you're more than welcome.

from ad-layers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.