Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rechteverwaltung: Anlegen von neuen Produkttypen, Konfigurationen etc. nicht möglich #1503

Closed
mbuchholz opened this issue Aug 6, 2015 · 7 comments
Labels
Milestone

Comments

@mbuchholz
Copy link

Wenn man in der Rechteverwaltung einem Benutzer das Anlegen erlaubt, ist es trotzdem nicht möglich.
Als Beispiel nehme ich mal das Anlegen eines neuen Produkttyps.
Sobald ich diesen anlegen möchte erhalte ich die Fehlermeldung Es ist ein Fehler aufgetreten. Logisch, da versucht wird ein neuer Produkttyp anzulegen, aber das Recht für den Zugriff auf den gerade angelegten Produkttyp fehlt. Das sagt mir auch das System-Log:

[06.08.2015 10:02] Not enough permissions to edit product type ID "9"
[06.08.2015 10:02] A new entry "tl_iso_producttype.id=9" has been created

Ich habe das ganze auch mal mit einem News-Archiv ausprobiert, da dort die Rechtevergabe ähnlich ist.
Dort wird automatisch das Recht für den Zugriff auf dieses Archiv gesetzt.

@aschempp aschempp added the bug label Aug 10, 2015
@aschempp aschempp added this to the 2.3.0 milestone Aug 10, 2015
@aschempp aschempp modified the milestones: 2.3.1, 2.3.0 Aug 18, 2015
@aschempp aschempp modified the milestones: 2.3.2, 2.3.1 Sep 14, 2015
@aschempp
Copy link
Member

aschempp commented Dec 1, 2015

@qzminski @Toflar can we build a generic solution for that into Haste ?

@aschempp aschempp modified the milestones: 2.3.3, 2.3.2 Dec 1, 2015
@Toflar
Copy link
Member

Toflar commented Dec 1, 2015

For what? :D

@aschempp
Copy link
Member

aschempp commented Dec 1, 2015

Updating permissions in the group settings (like the Contao core does).

@aschempp
Copy link
Member

aschempp commented Jan 3, 2016

@mbuchholz welche Isotope-Version verwendest du? Die entsprechende Prüfung scheint nämlich schon lange eingebaut…

@aschempp aschempp removed this from the 2.3.3 milestone Jan 3, 2016
@matejjurancic
Copy link

Tut mir leid, dass ich auf Englisch schreiben werde ...

I am facing the same problem as @mbuchholz. When a non-admin user with (group) permission to add new Product Type wants to add new product type it is created but can not be edited (similar log entries as above). I already had this problem with Contao 3.2 and Isotope 2.1.5 and it persists also after I upgraded both Contao (to 3.5.6) and Isotope (to 2.3.3).

From what I gathered from code debugging I suspect the problem is with Isotope\Backend\Permission->addNewRecordPermissions function, specifically with $newRecords key tl_iso_group within if clause on line 36. Changing it to tl_iso_producttype seems to resolve the problem.

@aschempp
Copy link
Member

Oh well… thanks for the hint! That obviously was the problem, will be fixed in the next release.

@fritzmg
Copy link
Contributor

fritzmg commented Sep 17, 2018

We are experiencing the exact same problem with Isotope 2.5.3. The non-admin user has the rights to create new product types, however when the user tries to create a new product type, he will only see "An error has occurred" with the following system log entries:

[17.09.2018 14:16] A new entry "tl_iso_producttype.id=13" has been created
[17.09.2018 14:16]  Not enough permissions to edit product type ID "13" 

After that, there will be an empty product type in the list which can then only be edited by an admin user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants