Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant activate deactivated plugin on latest version #61

Open
rafhelp opened this issue Jan 10, 2025 · 1 comment
Open

cant activate deactivated plugin on latest version #61

rafhelp opened this issue Jan 10, 2025 · 1 comment

Comments

@rafhelp
Copy link

rafhelp commented Jan 10, 2025

on the plugins i activated the random background plugin.
it works
the action then says Deactivate
i press Deactivate
it work
it deactivates it
then i press activate
nothing happens
it still says activate

@rafhelp
Copy link
Author

rafhelp commented Jan 10, 2025

man this app is buggy as anything. fix one thing it breaks another thing,

if you add $amp_role_capabilitiesin config.php it overwrites the one in plugin.php so you have to add all of the permissions in the config.php

In your help it has a Anonymous Role but in the plugin.php there is no "Anonymous" in the amproles:

class ampRoles {
const Administrator = 'Administrator';
const Editor = 'Editor';
const Contributor = 'Contributor';
}

well i added one:
class ampRoles {
const Administrator = 'Administrator';
const Editor = 'Editor';
const Contributor = 'Contributor';
const Anonymous = 'Anonymous';
}

and then assigned a role to a user to be anonymous:
$amp_role_assignment = array(
'Administrator' => array(
'admin',
// Add any additional admin usernames here
),
'Anonymous' => array(
'client1',
)
);

but now the login is messed up. when i login as admin and press the stats button for a link, it takes me back to the login page and wont let me login.

anonymous user should be able to login and see a stats page but cant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant