-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
I don't see the profile TABS #39
Comments
Did you try going to |
Additionally, if I try to access the profile edit page for a user that's not me (I'm the admin) by visiting |
@bugfolder there is a logic error in if (user_access('administer profiles', $account)) {
return TRUE;
} which should be TRUE for the admin user. BUT the problem is that the parameter received into $account is the user object for the user being edited, not for the user who's doing the editing. Since I'm trying to edit the profile of an authenticated user who doesn't have Therefore, the admin (who has the permission) can't see the tabs and can't edit the profile of another user when |
My suggestion is to modify to: if (user_access('administer profiles')) {
return TRUE;
} so that this checks if the current user has that permission. |
…sion for current user. Fixes backdrop-contrib#39.
Hi @argiepiano It is okay this way! Thanks. Can you btw think of a way to transfer fields from the main to another profile? I don't like tampering in SQL tables. Coming from a drupal 7 site I imported 300+ members, but the 'import module' doesn't allow to map to profile fields (yet)... |
I recommend using Feeds combined with Feeds entity processor, which will allow you to map fields to the Profile entity. |
Issue #39. Correctly check administer profiles permission for current user.
Hi Alejandro, I'm able to import users with Feeds, but using the same csv with the profile parser mapping other columns to a profile doesn't work. Resulted in "An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=757&op=do_nojs&op=do StatusText: Service unavailable (with message) ResponseText: ". No error log though. Maybe I'm connecting the pid (unique) and user fields incorrectly (I used the same for both). In 'User Import' there was a UID field, in 'Profile parser' there isn't or called 'user'. KR, Frank |
@Fiselier maybe we should continue this discussion somewhere else, since it's not related to the original problem you reported. I suggest you create an issue in the Feeds entity processor queue, or post this in the Backdrop CMS forum. One of the problems you have to deal with is that the original uid (user) for the Profile entities in D7 will most likely be different from the uid after you import your users in Backdrop. The uid (user) column in Profile is what links the profile entity to the specific user. This will require some juggling - probably creating an additional column for each profile row indicating the new uid from the newly imported users in Backdrop. As for the error message you got, the "AJAX HTTP error" you got doesn't tell you much about what happened - this type of error happens when a batch process encounters an issue and fails. You'll need to inspect the log under Reports to really find out what happened. |
BTW, in D7, there is a Feeds processor specifically designed for Profile: https://www.drupal.org/project/feeds_profile2. It'd be interesting (and probably pretty easy) to port this. |
@Fiselier I've done an initial port of Feeds Profile2, which adds mapping for profile entities by extending the User feeds importer. This should help you import profile entities at the same time when you import your users. Important: I haven't yet don any testing of this!!! |
i don't see the Profile tab when editing a user account. Fieldsets are there (when that option is selected in profile config)
The text was updated successfully, but these errors were encountered: