我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

用户角色取决于相关对象

I have an entity related with some object in many-to-many relation (well, not really a relation because I have a table between them that has the roles).

Is there any way that I can set this roles to user in manager basing for example on object's id from URL?

Looks like you're looking for ACL: http://symfony.com/doc/current/cookbook/security/acl.html

近期文章

  • 如何自动查询mysql来检索名称[关闭]
  • CodeIgniter:如何根据第一个查询结果正确运行两个查询?
  • 会话故障 - 继续获取“无法在写入上下文中使用函数返回值”
  • 类别/子类别项的标签或嵌套集
  • Postgres查询无法选择特定的地理位置
  • PHPUnit无法找到GearmanClient
  • 试图从php中的mysql表中排序数据表
  • 下划线延伸到单词的结尾,字母间距[关闭]
  • 如果URL数组创建动态滑块,是否可以使用PHP?
  • SQL输出无法正常显示
  • MySQL表上次更新时如何显示PHP页面?
  • 用paypal api支付没有重定向
  • Nginx不提供javascript文件
  • 试图在C:\ wamp中获取非对象的属性...(访问对象数组值)
  • Htaccess URL从文件重写到目录[关闭]
  • PHP字段未知的PHP ID [重复]
  • chmod($ file)完全不像我想要的那样工作
  • 将数组分成不同的变量
  • 如何在自定义.php文件中加载qtranslate?
  • 每行exec()的PHP调用函数

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华