Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Check if a permission exist before adding it #113

Merged
merged 1 commit into from
Dec 9, 2013
Merged

Conversation

bakura10
Copy link
Member

@bakura10 bakura10 commented Dec 9, 2013

ping @BrunoSpy @Arakkas

Does this seem logical to you? My idea of separating role loading and permission loading may have not been the best, I can see a lot of useless traversal and object creation here (each "hasPermission" creates a RecursiveIteratorIterator and do an iteration). But for advanced cases I think it makes sense to load them separately.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) when pulling b9c42af on check-perm into 4e27242 on master.

@bakura10
Copy link
Member Author

bakura10 commented Dec 9, 2013

badly ping @arekkas

@aeneasr
Copy link
Contributor

aeneasr commented Dec 9, 2013

I'd merge this as a hotfix because permissions are (completely) borken when using doctrine but it doesn't solve the overall problem, as shown in #112

bakura10 added a commit that referenced this pull request Dec 9, 2013
Check if a permission exist before adding it
@bakura10 bakura10 merged commit 9ab8d95 into master Dec 9, 2013
@bakura10 bakura10 deleted the check-perm branch December 9, 2013 22:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants