Announcements permission error as a member

Announcements permission error as a member

Laraship QuestionsCategory: TechnicalAnnouncements permission error as a member
st3fan asked 4 months 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 4 months 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(),

]

]);

BLACK FRIDAY

50% DISCOUNT ON OUR ENTIRE STORE
COUPON CODE : BLACKFRIDAY
GO TO STORE
Offer Ends December 15th
close-link