degree11
  •  degree11
  • 61.4% (Friendly)
  • YAF Camper Topic Starter
2020-11-12T17:27:27Z
We have added our custom membership and our members ar added to the database.

1. The problem is YAF members stopped working - first question is why?
2. The second question is how to set another (custom member) as an admin via database? I have added added a record to UserGroup page with aadmin id and also changed rank in User table to 1. Logged out and in and the user is still ordinary user. What else to set?
Sponsor
degree11
  •  degree11
  • 61.4% (Friendly)
  • YAF Camper Topic Starter
2020-11-13T14:31:00Z
Can anyone advise?
tha_watcha
2020-11-14T23:14:07Z
1. Can you explain the problem? What error did you get?
2. For the Group the IsAdmin flag needs to be set. Admin > Groups > Edit Group > Check Is Admin
UserPostedImage
degree11
  •  degree11
  • 61.4% (Friendly)
  • YAF Camper Topic Starter
2020-11-16T10:57:27Z
Originally Posted by: tha_watcha 

1. Can you explain the problem? What error did you get?
2. For the Group the IsAdmin flag needs to be set. Admin > Groups > Edit Group > Check Is Admin



1. The problem is that we don't have any admin atm to set up someone else as an admin because we implemented our own membership and none of our own members is an admin. So I want to know how to set up admin programmatically in the db or anywhere where it is settable (expect the admin panel to which no one has access atm).

2. There is no such submenu Groups under Admin and also none of our users has access to Admin anyway - it displays "Host Admin permissions required!" when I try to access any of the admin pages.
I have hardcoded one of our users as belonging to "Administrators" group so I can see the admin navigation but none of the admin pages is accessible.
IsAdmin
flag is true however
IsHostAdmin
is false and
this.userFlags.IsHostAdmin
is also false.
degree11
  •  degree11
  • 61.4% (Friendly)
  • YAF Camper Topic Starter
2020-11-16T17:56:31Z
I have managed to make IsHostAdmin true by changing Flags value for the user in the db.
tha_watcha
2020-11-16T18:46:18Z
The menu entry should be admin > user and roles > roles.

By default all pages are disabled for Admins. As host you need to set Read access for the pages under host > admin page access.

Or manually via the Admin Page User Access table.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved