[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3380) Masks do not work

Vinicius Carvalho (JIRA) jira-events at lists.jboss.org
Thu Sep 4 09:43:43 EDT 2008


Masks do not work
-----------------

                 Key: JBSEAM-3380
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3380
             Project: Seam
          Issue Type: Bug
    Affects Versions: 2.1.0.BETA1
            Reporter: Vinicius Carvalho


The masks features for the Permissions do not work at all :(

For instance, if I have this class:

@Permissions({
	@Permission(action="view",mask=1),
	@Permission(action="manage",mask=2)
})
public class Author implements Serializable 

And add a permission with mask =3, would it mean that I have both view and manage permissions.

But ... :

Identity.instance().hasPermission(Author.class, "1");

Returns false. Also, would be really nice if I could:

Identity.instance().hasPermission(Author.class, "view");

That doesn't work either :(

>From what I've seen so far it seems that PermissionMetadata and ActionSet are not being correctly initialized. 

Regards


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list