AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] Role Management

4 Posts
2 Users
0 Reactions
1,453 Views
Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@nick81)
Eminent Member
Joined: 3 years ago
[#49530]

Hello,
is it possible to extend the user and role management so that other functions can also be authorized? In the concrete case it is about the function to delete a user including posts. My solution was to create a wordpress role "wpf_delete_user_dashboard" and adjust it in the Members.php.

Members.php:281:                    return (current_user_can('wpf_delete_user_dashboard')

But also other functions are hardcoded linked to the "administrator" role

 


3 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 years ago

Hi @nick81,

The User Deletion Depends on the User Role. If the User Role is set to admin and the Usergroup has the needed can's the user would be able to delete other Users.


Posts: 11
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@nick81)
Eminent Member
Joined: 3 years ago

I dont want to set a user/group to the admin role. Board-mods should delete members with posts, but at the moment only admins can do this.

Another solution could be, if the user can delete itself with (or without) its own posts. Do you have a solution for that? The wordpress plugin "delete me" only deletes the user and wordpress posts, but wpforo posts are set to anonymous


1 Reply
Chris
(@chris)
Joined: 5 years ago

Famed Member
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@nick81,

Sorry for misunderstanding.

1. Navigate to Dashboard > wpForo > Settings > Login & Registration and check "User Delete Method" option.

2. Navigate to Usergroups Page, and Edit the needed Usergroup Example: Moderator, enable "Dashboard - Can delete member" option.

Now Navigate to the User's wpForo Profile page and Press “Delete Account” Button, The red one.

The user would be deleted by the method you have chosen, for "User Delete Method" option


Share: