Announcements permission error as a member

Announcements permission error as a member

Laraship QuestionsCategory: TechnicalAnnouncements permission error as a member
Stefan Warmerdam asked 2 weeks ago

After allowing read access to the default member group to Announcements the following error occurs when a member is heading towards the “all announcements” link in the top right corner of the new Marketplace Dragon theme.

Spatie Permission Exceptions PermissionDoesNotExist

There is no permission named Administrations::admin.announcement for guard web.

1 Answers
laraship Staff answered 2 weeks ago

Hello,

We’re not sure how this permission got deleted from your side.

to fix it you have two options

1) Uninstall and install the Announcment Module

2) run the following code in tinker

# php artisan tinker

paste the code below

\DB::table('permissions')->insert([

[

'name' => 'Administrations::admin.announcement',

'guard_name' => config('auth.defaults.guard'),

'created_at' => \Carbon\Carbon::now(),

'updated_at' => \Carbon\Carbon::now(),

]

]);

50% OFF

No Minimum, No Exceptions
 
GO TO STORE
close-link